Valmiki Ramayana Ayodhya Kanda Sarga 52 Shloka 90
Original Shlokaयानि त्वत्तीरवासीनि दैवतानि च सन्ति हि। तानि सर्वाणि यक्ष्यामि तीर्थान्यायतनानि च।।2.52.90।।
1 source checked for this shloka
यानि all those, दैवतानि deities, त्वत्तीरवासीनि inhabiting your banks, सन्ति are found तानि all, सर्वाणि of them, तीर्थानि all sacred spots, आयतनानि च all temples, यक्ष्यामि I will worship.
I shall worship all those deities inhabiting your banks and all sacred spots and temples.