Al-An'am 6:137
وَكَذَٰلِكَ زَيَّنَ لِكَثِيرٍ مِّنَ ٱلْمُشْرِكِينَ قَتْلَ أَوْلَـٰدِهِمْ شُرَكَآؤُهُمْ لِيُرْدُوهُمْ وَلِيَلْبِسُوا۟ عَلَيْهِمْ دِينَهُمْ ۖ وَلَوْ شَآءَ ٱللَّهُ مَا فَعَلُوهُ ۖ فَذَرْهُمْ وَمَا يَفْتَرُونَ
Wakathalika zayyana likatheerin minaalmushrikeena qatla awladihim shurakaohumliyurdoohum waliyalbisoo AAalayhim deenahum walaw shaa Allahuma faAAaloohu fatharhum wama yaftaroon
And likewise, to many of the polytheists their partners have made [to seem] pleasing the killing of their children in order to bring about their destruction and to cover them with confusion in their religion. And if Allāh had willed, they would not have done so. So leave them and that which they invent.
Similarly, their associate-gods have made the killing of their children seem fair to many mushriks (idolators), so that they may ruin them and may confuse their faith for them. Had Allah so willed, they would not have done that. So, leave them alone with what they fabricate.