Surah An-Nisaa

4:80

مَّن يُطِعِ ٱلرَّسُولَ فَقَدْ أَطَاعَ ٱللَّهَ ۖ وَمَن تَوَلَّىٰ فَمَآ أَرْسَلْنَٰكَ عَلَيْهِمْ حَفِيظًۭا

He who obeys the Messenger has obeyed Allah; but those who turn away - We have not sent you over them as a guardian.

Tafsir 4:80

Whoever follows the Messenger by fulfilling his instructions and avoiding his prohibitions has actually followed Allah. If anyone turns away from following you, O Messenger, do not feel sad about it, because I have not sent you as a guard to watch over what they do. I am the One Who will watch them and hold them to account for their actions.