You are reading a tafsir for the group of verses 18:80 to 18:81
واما الغلام فكان ابواه مومنين فخشينا ان يرهقهما طغيانا وكفرا ٨٠ فاردنا ان يبدلهما ربهما خيرا منه زكاة واقرب رحما ٨١
وَأَمَّا ٱلْغُلَـٰمُ فَكَانَ أَبَوَاهُ مُؤْمِنَيْنِ فَخَشِينَآ أَن يُرْهِقَهُمَا طُغْيَـٰنًۭا وَكُفْرًۭا ٨٠ فَأَرَدْنَآ أَن يُبْدِلَهُمَا رَبُّهُمَا خَيْرًۭا مِّنْهُ زَكَوٰةًۭ وَأَقْرَبَ رُحْمًۭا ٨١
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
undefined
3

This incident of the child indicates the different ways in which God helps his subjects. He even helps them in matters of which they are not even aware and, not being aware of them, cannot pray to their Lord seeking a solution. Man should always demonstrate patience and gratitude to God. He should always hope for good from God in all circumstances. God is all-knowing and that is why He knows best. God knows better what is good for his subject while the subject himself cannot be aware of this due to his limited knowledge.