Surah Al-An'aam

6:107

وَلَوْ شَآءَ ٱللَّهُ مَآ أَشْرَكُوا۟ ۗ وَمَا جَعَلْنَٰكَ عَلَيْهِمْ حَفِيظًۭا ۖ وَمَآ أَنتَ عَلَيْهِم بِوَكِيلٍۢ

But if Allah had willed, they would not have associated. And We have not appointed you over them as a guardian, nor are you a manager over them.

Tafsir 6:107

If Allah willed for them not to associate any one as partner with Him, they would not have done so. I have not made you, O Messenger, a guardian to record their actions, nor are you in charge of them. You are only a messenger and your duty is only to convey the message.