sarve lokah sapalakah
saranam yayur acyutam
tasyaof him (Hiranyakasipu); ugra-dandaby the very fearful chastisement; samvignahdisturbed; sarveall; lokahthe planets; sa-palakahwith their principal rulers; anyatraanywhere else; alabdhanot obtaining; saranahshelter; saranamfor shelter; yayuhapproached; acyutamthe 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.
Lord Krsna says in Bhagavad-gita (5.29):
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 dogs 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

If you Love Me Distribute My Books -- Srila Prabhupada