Al-An'aam • EN-TAFSIR-IBN-ABBAS
﴿ وَكَذَٰلِكَ زَيَّنَ لِكَثِيرٍۢ مِّنَ ٱلْمُشْرِكِينَ قَتْلَ أَوْلَٰدِهِمْ شُرَكَآؤُهُمْ لِيُرْدُوهُمْ وَلِيَلْبِسُوا۟ عَلَيْهِمْ دِينَهُمْ ۖ وَلَوْ شَآءَ ٱللَّهُ مَا فَعَلُوهُ ۖ فَذَرْهُمْ وَمَا يَفْتَرُونَ ﴾
“And, likewise, their belief in beings or powers that are supposed to have a share in God's divinity makes [even] the slaying of their children seem goodly to many of those who ascribe divinity to aught beside God, thus bringing them to ruin and confusing them in their faith. Yet, unless God had so willed, they would not be doing all this: stand, therefore, aloof from them and all their false imagery!”
(Thus) just as We have made their words and works seem fair to them (have their (so called) partners) among the devil (made the killing of their children) their daughters (to seem fair unto many of the idolaters, that they may ruin them) destroy them (and make their faith) the religion of Abraham and Ishmael (obscure for them. Had Allah willed (it otherwise), they had not done so) i.e. killing their daughters and making it seem fair to them. (So leave them alone with their devices) with their lies when they claim that Allah commanded them to bury their daughters alive.