6:88
ذَٰلِكَ هُدَى ٱللَّهِ يَهْدِى بِهِۦ مَن يَشَآءُ مِنْ عِبَادِهِۦ ۚ وَلَوْ أَشْرَكُوا۟ لَحَبِطَ عَنْهُم مَّا كَانُوا۟ يَعْمَلُونَ
dhālika hudā l-lahi yahdī bihi man yashāu min ʿibādihi walaw ashrakū laḥabiṭa ʿanhum mā kānū yaʿmalūna
Such is God’s guidance, with which He guides whichever of His servants He will. If they had associated other gods with Him, all their deeds would have come to nothing.
This is the Guidance of Allâh with which He guides whomsoever He wills of His slaves. But if they had joined in worship others with Allâh, all that they used to do would have been of no benefit to them.