Allah says;
وَلَا تَقْتُلُوا أَوْلَادَكُم مِّنْ إِمْلَاقٍ ۖ نَّحْنُ نَرْزُقُكُمْ وَإِيَّاهُمْ
wa laa taQutloo aWlaadakum min imlaaQ. Nanhnu naRzuqukum wa iyyaahum –
And kill not your children out of poverty, We provide you and them.
(An’am 6:151)
وَلَا تَقْتُلُوا أَوْلَادَكُمْ خَشْيَةَ إِمْلَاقٍ ۖ نَّحْنُ نَرْزُقُهُمْ وَإِيَّاكُمْ
And kill not your children for fear [of] poverty. We provide them and you.
(Israa’ 17:31)
It seems like it’s the same thing. But it’s not;
In surah al An’am: it is describing when Poverty already exists - Who are you worried about feeding in that moment the most? = Yourself. So Allah tells us that He will provide for YOU and them.
In surah al Isra’: - there is a Future-Fear of Poverty being depicted. People may be able to feed themselves, but they fear for the providing of their children.
So Allah mentions that He will Provide for THEM [the children], since that is the persons main worry.
This is part of the Miracle of the Qur’an: the Placement of Words. Each word is placed in a Unique place in accordance to it’s circumstance.

