Surah Al-Kahf

18:80

وَأَمَّا ٱلْغُلَٰمُ فَكَانَ أَبَوَاهُ مُؤْمِنَيْنِ فَخَشِينَآ أَن يُرْهِقَهُمَا طُغْيَٰنًۭا وَكُفْرًۭا

Adapun pemuda itu, kedua ibu bapanya adalah orang-orang yang beriman, maka kami bimbang bahawa ia akan mendesak mereka melakukan perbuatan yang zalim dan kufur.

Tafsir 18:80

As for the boy you criticised me for killing, his parents were believers but he was an unbeliever according to Allah’s knowledge. So I feared that if he grew up, he would cause them to disbelieve in Allah out of their intense love for him or their intense need towards him.