Śrīmad-Bhāgavatam · Text 10.7.31
Who is speaking and story frame
अहो बतात्यद्भुतमेष रक्षसा
बालो
निवृत्तिं गमितोऽभ्यगात् पुन: ।
हिंस्र: स्वपापेन विहिंसित:
खल:
साधु: समत्वेन भयाद् विमुच्यते ॥ ३१ ॥
aho batāty-adbhutam eṣa rakṣasā
bālo nivṛttiṁ gamito ’bhyagāt punaḥ
hiṁsraḥ sva-pāpena vihiṁsitaḥ khalaḥ
sādhuḥ samatvena bhayād vimucyate
It is most astonishing that although this innocent child was taken away by the Rākṣasa to be eaten, He has returned without having been killed or even injured. Because this demon was envious, cruel and sinful, he has been killed for his own sinful activities. This is the law of nature. An innocent devotee is always protected by the Supreme Personality of Godhead, and a sinful person is always vanquished for his sinful life.
Read Śrīla Prabhupāda's purport on Vedabase.io