Al-An'aam • EN-AL-JALALAYN
﴿ وَلَوْ شَآءَ ٱللَّهُ مَآ أَشْرَكُوا۟ ۗ وَمَا جَعَلْنَٰكَ عَلَيْهِمْ حَفِيظًۭا ۖ وَمَآ أَنتَ عَلَيْهِم بِوَكِيلٍۢ ﴾
“Yet if God had so willed, they would not have ascribed divinity to aught beside Him; hence, We have not made thee their keeper, and neither art thou responsible for their conduct.”
Had God willed they would not have been idolaters; and We have not set you as a keeper over them a watcher so that you might then requite them for their deeds; nor are you a guardian over them so that you might be able to coerce them to faith — this was revealed before the command to fight them.