Surah An-Nisa — Ayah 80 (4:80)
مَّن يُطِعِ ٱلرَّسُولَ فَقَدۡ أَطَاعَ ٱللَّهَۖ وَمَن تَوَلَّىٰ فَمَآ أَرۡسَلۡنَٰكَ عَلَيۡهِمۡ حَفِيظٗا ٨٠
English translation (Saheeh International)
He who obeys the Messenger has obeyed Allāh; but those who turn away - We have not sent you over them as a guardian.
Brief commentary
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.