Śrīmad-Bhāgavatam · Text 4.24.29
Who is speaking and story frame
स्वधर्मनिष्ठ: शतजन्मभि: पुमान्
विरिञ्चतामेति तत: परं हि माम् ।
अव्याकृतं भागवतोऽथ वैष्णवं
पदं यथाहं विबुधा: कलात्यये ॥ २९ ॥
sva-dharma-niṣṭhaḥ śata-janmabhiḥ pumān
viriñcatām eti tataḥ paraṁ hi mām
avyākṛtaṁ bhāgavato ’tha vaiṣṇavaṁ
padaṁ yathāhaṁ vibudhāḥ kalātyaye
A person who executes his occupational duty properly for one hundred births becomes qualified to occupy the post of Brahmā, and if he becomes more qualified, he can approach Lord Śiva. A person who is directly surrendered to Lord Kṛṣṇa, or Viṣṇu, in unalloyed devotional service is immediately promoted to the spiritual planets. Lord Śiva and other demigods attain these planets after the destruction of this material world.
Read Śrīla Prabhupāda's purport on Vedabase.io