Valmiki Ramayana Ayodhya Kanda Sarga 110 Shloka 3
Original Shlokaसर्वं सलिलमेवासीत्पृथिवी यत्र निर्मिता। तत: समभवद्ब्रह्मा स्वयम्भूर्दैवतै: सह।।2.110.3।।
1 source checked for this shloka
सर्वम् all, सलिलम् एव आसीत् all this was water, यत्र where, पृथिवी the earth, निर्मिता was formed, ततः thereafter, स्वयंभूः the selfexistent, ब्रह्मा Brahma, दैवतैस्सह along with the gods, समभवत् came into existence.
At the beginning, all this was water from which the earth was created. Thereafter, the selfexistent Brahma along with the gods came into existence.