Srimad-Bhagavatam: Canto 10 - Chapter 1 - Verse 19


ब्रह्मा तदुपधार्याथ सह देवैस्तया सह । जगाम सत्रिनयनस्तीरं क्षीरपयोनिधे: ॥ १९ ॥


brahmā tad-upadhāryāthasaha devais tayā sahajagāma sa-tri-nayanastīraṁ kṣīra-payo-nidheḥ


Thereafter, having heard of the distress of mother earth, Lord Brahmā, with mother earth, Lord Śiva and all the other demigods, approached the shore of the Ocean of Milk.


After Lord Brahmā understood the precarious condition of the earth, he first visited the demigods headed by Lord Indra, who are in charge of the various affairs of this universe, and Lord Śiva, who is responsible for annihilation. Both maintenance and annihilation go on perpetually, under the order of the Supreme Personality of Godhead. As stated in Bhagavad-gītā (4.8), paritrāṇāya sādhūnāṁ vināśāya ca duṣkṛtām. Those who are obedient to the laws of God are protected by different servants and demigods, whereas those who are undesirable are vanquished by Lord Śiva. Lord Brahmā first met all the demigods, including Lord Śiva. Then, along with mother earth, they went to the shore of the Ocean of Milk, where Lord Viṣṇu lies on a white island, Śvetadvīpa.