Valmiki Ramayana Ayodhya Kanda Sarga 14 Shloka 64
Original Shlokaस मन्यमानः कल्याणं हृदयेन ननन्द च।।2.14.64।। निर्जगाम च सम्प्रीत्या त्वरितो राजशासनात्।
1 source checked for this shloka
सः he, हृदयेन at heart, कल्याणम् auspicious event, मन्यमानः thinking, ननन्द च felt happy, राजशासनात् at the royal command, त्वरितः swiftly, सम्प्रीत्याः rejoiced, निर्जगाम च went away.
Thinking that an auspicious event will take place, he rejoiced at heart and in obedience to royal order, left at once.