Valmiki Ramayana Ayodhya Kanda Sarga 12 Shloka 55
Original Shlokaनष्टचित्तो यथोन्मत्तो विपरीतो यथाऽतुरः। हृततेजा यथा सर्पो बभूव जगतीपतिः।।2.12.55।।
1 source checked for this shloka
जगतीपतिः lord of the earth, नष्टचित्तः the mind deranged, उन्मत्तः यथा like a madman, विपरीतः behaving in a contrary manner, आतुरः यथा like a sick person, हृततेजाः with its taken away (by mantra), सर्पः यथा like a serpent, बभूव became.
The lord of the earth (Dasaratha) became like a man with the mind deranged, like a sick man behaving to the contrary, like a serpent with its energy drained (through mantra).