Valmiki Ramayana Ayodhya Kanda Sarga 33 Shloka 29
Original Shlokaप्रतीक्षमाणोऽपि जनं तदार्त मनार्तरूपः प्रहसन्निवाथ। जगाम रामः पितरं दिदृक्षुः पितुर्निदेशं विधिवच्चिकीर्षुः।।2.33.29।।
1 source checked for this shloka
रामः Rama, तदा then, आर्तम् distressed, जनम् people, प्रतीक्षमाणोऽपि even though observing, अनार्तरूपः without revealing his sorrowful feelings, अथ also, प्रहसन्निव looking as if smiling, पितुः father's, निदेशम् palace, विधिवत् in accordance with duty, चिकीर्षुः intent on carrying out, पितरम् father, दिदृक्षुः intent to see, जगाम went.
Even after observing the people in grief, Rama did not reveal his sorrowful feelings. Bound by duty he went in as if with a smile to see his father.