SB 10.1.19

brahmā tad-upadhāryātha
 saha devais tayā saha
jagāma sa-tri-nayanas
 tīraṁ kṣīra-payo-nidheḥ
Word for word: 
brahmā — Lord Brahmā; tat-upadhārya — understanding everything rightly; atha — thereafter; saha — with; devaiḥ — the demigods; tayā saha — with mother earth; jagāma — approached; sa-tri-nayanaḥ — with Lord Śiva, who has three eyes; tīram — the shore; kṣīra-payaḥ-nidheḥ — of the Ocean of Milk.
Translation: 
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.
Purport: 

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.