Valmiki Ramayana Kishkindha Kanda Sarga 11 Shloka 82
Original Shlokaतस्य तद्वचनं श्रुत्वा सुग्रीवस्य महात्मनः। स्मितपूर्वमथो रामः प्रत्युवाच हरिं प्रभुः4.11.82।।
1 source checked for this shloka
रामः Rama, महात्मनः great soul, तस्य सुग्रीवस्य that Sugriva's, तत् वचनम् those words, श्रुत्वा having heard, अथ then, हरिं प्रति seeing Sugriva, स्मितपूर्वम् smiling gently, प्रत्युवाच replied.
Having heard the great Sugriva, Rama replied with a gentle smile: