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.
Srimad Bhagavata Purana
श्रीमद्भागवतमहापुराणम्
मूल श्लोकः
अहो बतात्यद्भुतमेष रक्षसा बालो निवृत्तिं गमितोऽभ्यगात्पुनः । हिंस्रः स्वपापेन विहिंसितः खलः साधुः समत्वेन भयाद्विमुच्यते
aho batātyadbhutameṣa rakṣasā bālo nivṛttiṃ gamito'bhyagātpunaḥ | hiṃsraḥ svapāpena vihiṃsitaḥ khalaḥ sādhuḥ samatvena bhayādvimucyate
SB 10.7.31