Surah An-Nisa, Verse 64: وَمَا أَرْسَلْنَا مِن رَّسُولٍ إِلَّا لِيُطَاعَ بِإِذْنِ اللَّهِ وَلَوْ أَنَّهُمْ إِذ ظَّلَمُوا أَنفُسَهُمْ جَاءُوكَ فَاسْتَغْفَرُوا اللَّهَ وَاسْتَغْفَرَ لَهُمُ الرَّسُولُ لَوَجَدُوا اللَّهَ تَوَّابًا رَّحِيمًا Wij zenden geen boodschapper of hij moet worden gehoorzaamd volgens Allah’s gebod. Als zij tot u waren gekomen, toen zij hun ziel onrecht hadden aangedaan en Allah om vergiffenis hadden gevraagd en de boodschapper ook om vergiffenis voor hen had gevraagd, zouden zij Allah voorzeker Berouwaanvaardend, Genadevol hebben bevonden.

وَمَا أَرْسَلْنَا مِن رَّسُولٍ إِلَّا لِيُطَاعَ بِإِذْنِ اللَّهِ ۚ وَلَوْ أَنَّهُمْ إِذ ظَّلَمُوا أَنفُسَهُمْ جَاءُوكَ فَاسْتَغْفَرُوا اللَّهَ وَاسْتَغْفَرَ لَهُمُ الرَّسُولُ لَوَجَدُوا اللَّهَ تَوَّابًا رَّحِيمًا [An-Nisaa : 64]
(4:64) (And tell them that) We never sent a Messenger but that he should be obeyed by the leave of Allah. *94 If whenever they wronged themselves they had come to you praying to Allah for forgiveness, and had the Messenger prayed for their forgiveness, they would indeed have found Allah All-Forgiving, All-Compassionate.
*94).This is to impress upon us that Prophets are not sent so that people may pay lip-service to their Prophethood, and then obey whoever they wish. The purpose of sending Prophets is that people should follow the laws of God as brought and expounded by them rather than laws devised by man, and that they should obey the commands of God as revealed to the Prophets to the exclusion of the commands of others.