Valmiki Ramayana Bala Kanda Sarga 2 Shloka 20
Original Shlokaसोऽभिषेकं तत: कृत्वा तीर्थे तस्मिन्यथाविधि । तमेव चिन्तयन्नर्थमुपावर्तत वै मुनि: ।।1.2.20।।
1 source checked for this shloka
तत: thereafter, स: मुनि: Valmiki maharshi, तस्मिन् तीर्थे at that holy spot, यथाविधि according to the prescribed ritual, अभिषेकम् bathing, कृत्वा having performed, तम् that, अर्थमेव the matter itself, चिन्तयन् pondering over, उपावर्तत वै returned (to his hermitage).
After having performed his ablution at that holy spot according to the prescribed ritual, the sage (Valmiki) returned (to his hermitage), pondering over the matter.