Śrīmad-Bhāgavatam · Text 6.17.23
Who is speaking and story frame
तथापि तच्छक्तिविसर्ग एषां
सुखाय दु:खाय हिताहिताय ।
बन्धाय मोक्षाय च मृत्युजन्मनो:
शरीरिणां संसृतयेऽवकल्पते ॥ २३ ॥
tathāpi tac-chakti-visarga eṣāṁ
sukhāya duḥkhāya hitāhitāya
bandhāya mokṣāya ca mṛtyu-janmanoḥ
śarīriṇāṁ saṁsṛtaye ’vakalpate
Although the Supreme Lord is unattached to our happiness and distress according to karma, and although no one is His enemy or favorite, He creates pious and impious activities through the agency of His material potency. Thus for the continuation of the materialistic way of life He creates happiness and distress, good fortune and bad, bondage and liberation, birth and death.
Read Śrīla Prabhupāda's purport on Vedabase.io