Surah Al-Hujuraat

49:17

يَمُنُّونَ عَلَيْكَ أَنْ أَسْلَمُوا۟ ۖ قُل لَّا تَمُنُّوا۟ عَلَىَّ إِسْلَٰمَكُم ۖ بَلِ ٱللَّهُ يَمُنُّ عَلَيْكُمْ أَنْ هَدَىٰكُمْ لِلْإِيمَٰنِ إِن كُنتُمْ صَٰدِقِينَ

They consider it a favor to you that they have accepted Islam. Say, "Do not consider your Islam a favor to me. Rather, Allah has conferred favor upon you that He has guided you to the faith, if you should be truthful."

Tafsir 49:17

O Messenger! These bedouins recount their favour upon you by mentioning their Islam. Say to them: “Do not recount your entering the religion of Allah as a favour upon me; its benefit - if achieved - will return to you alone. Rather, it is Allah who recounts His favour upon you that He granted you the ability to enter into His religion, if indeed, you are truthful in your claim that you have entered into it.”