Valmiki Ramayana Ayodhya Kanda Sarga 46 Shloka 17
Original Shlokaगोकुलाकुलतीरायास्तमसाया विदूरतः। अवसत्तत्र तां रात्रिं रामः प्रकृतिभिस्सह।।2.46.17।।
1 source checked for this shloka
रामः Rama, प्रकृतिभिः with the subjects, गोकुलाकुलतीरायाः of that bank crowded with herds of cattle, तमसायाः Tamasa, विदूरतः not very far, तां रात्रिम् that night, तत्र there, अवसत् lived.
Rama spent the night with his subjects not very far from the bank of Tamasa which was crowded with herds of cattle.