Śrīmad-Bhāgavatam · Text 9.24.56
Who is speaking and story frame
यदा यदा हि धर्मस्य क्षयो वृद्धिश्च पाप्मन: । तदा तु भगवानीश आत्मानं सृजते हरि: ॥ ५६ ॥
yadā yadā hi dharmasya
kṣayo vṛddhiś ca pāpmanaḥ
tadā tu bhagavān īśa
ātmānaṁ sṛjate hariḥ
Whenever the principles of religion deteriorate and the principles of irreligion increase, the supreme controller, the Personality of Godhead Śrī Hari, appears by His own will.
Read Śrīla Prabhupāda's purport on Vedabase.io