إِنَّ ٱلَّذِينَ كَفَرُوا۟ لَن تُغْنِىَ عَنْهُمْ أَمْوَٰلُهُمْ وَلَآ أَوْلَٰدُهُم مِّنَ ٱللَّهِ شَيْـًٔا ۖ وَأُو۟لَٰٓئِكَ أَصْحَٰبُ ٱلنَّارِ ۚ هُمْ فِيهَا خَٰلِدُونَ
3:11; 58:18.
Commentary:
If disbelievers employ their wealth and their children in opposition to God, this shall not serve as protection against Divine punishment which must overtake them. But if they employ their wealth and their children in order to win the pleasure of God, this is sure ultimately to lead to their guidance. A Companion of the Holy Prophet is reported to have once said to him that in the Days of Ignorance, i.e. before he accepted Islam, he had given a hundred camels in charity and asked him whether that charity would bring him any reward. The Holy Prophet promptly replied, "Your acceptance of Islam is a result of the very charity you practised" (Bukhari, ch. on Zakah).
3:11; 58:18.