sarve lokah sapalakah
saranam yayur acyutam
tasya—of him (Hiranyakasipu); ugra-danda—by the very fearful chastisement; samvignah—disturbed; sarve—all; lokah—the planets; sa-palakah—with their principal rulers; anyatra—anywhere else; alabdha—not obtaining; saranah—shelter; saranam—for shelter; yayuh—approached; acyutam—the Supreme Personality of Godhead.
Everyone, including the rulers of the various planets, was extremely distressed because of the severe punishment inflicted upon them by Hiranyakasipu. Fearful and disturbed, unable to find any other shelter, they at last surrendered to the Supreme Personality of Godhead, Visnu.
“The sages, knowing Me as the ultimate purpose of all sacrifices and austerities, the Supreme Lord of all planets and demigods and the benefactor and well-wisher of all living entities, attain peace from the pangs of material miseries.” The Supreme Personality of Godhead, Krsna, is actually the best friend of everyone. In a condition of distress or misery, one wants to seek shelter of a well-wishing friend. The well-wishing friend of the perfect order is Lord Sri Krsna. Therefore all the inhabitants of the various planets, being unable to find any other shelter, were obliged to seek shelter at the lotus feet of the supreme friend. If from the very beginning we seek shelter of the supreme friend, there will be no cause of danger. It is said that if a dog is swimming in the water and one wants to cross the ocean by catching hold of the dog’s tail, certainly he is foolish. Similarly, if in distress one seeks shelter of a demigod, he is foolish, for his efforts will be fruitless. In all circumstances, one should seek shelter of the Supreme Personality of Godhead. Then there will be no danger under any circumstances.
Link to this page: https://prabhupadabooks.com/sb/7/4/21