Valmiki Ramayana Aranya Kanda Sarga 30 Shloka 36
Original Shlokaअहो बत महत्कर्म रामस्य विदितात्मनः। अहो वीर्यमहो दाक्ष्यं विष्णोरिव हि दृश्यते।।3.30.36।। इत्येवमुक्त्वा ते सर्वे ययुर्देवा यथागतम्।
1 source checked for this shloka
विदितात्मनः who knows the self, रामस्य Rama's, महत् great, कर्म performance, अहो बत what a great thing, वीर्यम् prowess, अहो Oh, दाक्ष्यम् efficiency, अहो Oh, विष्णोरिव like Visnu, दृश्यते appears, इत्येवम् like that, उक्त्वा saying, सर्वे all, ते देवाः the gods, यथागतम् to their destinations, ययुः went back.
'Rama who knows the self has performed a great work. Oh what prowess what efficiency only lord Visnu could do this'. So saying all the gods went back to their respective destinations.