Surah Al-Israa

17:31

وَلَا تَقْتُلُوٓا۟ أَوْلَٰدَكُمْ خَشْيَةَ إِمْلَٰقٍۢ ۖ نَّحْنُ نَرْزُقُهُمْ وَإِيَّاكُمْ ۚ إِنَّ قَتْلَهُمْ كَانَ خِطْـًۭٔا كَبِيرًۭا

And do not kill your children for fear of poverty. We provide for them and for you. Indeed, their killing is ever a great sin.

Tafsir 17:31

Do not kill your children for fear of poverty in the future if you spend on them. I take charge of providing for them, and for you too. Killing them is a major sin, as they have done nothing wrong and there is no reason requiring them to be killed.