Worship is for Allah, and in the way of the Messenger of Allah
All the scholars of the Ummah agree on the following matters:
● There is no worship of anyone except Allah, the Exalted.
● There is no reliance (tawakkul) upon anyone except Allah, the Exalted.
And no one from the Ummah is a partner or sharer in the rights of the Messenger of Allah, such as the obligation of obeying and following him in his commands, which is necessary.
Allah, the Exalted, says:
مَّن يُطِعِ الرَّسُولَ فَقَدْ أَطَاعَ اللَّهَ
“Whoever obeys the Messenger has in fact obeyed Allah.”
وَمَا أَرْسَلْنَا مِن رَّسُولٍ إِلَّا لِيُطَاعَ بِإِذْنِ اللَّهِ ۚ
“We have not sent any messenger except that he should be obeyed by the permission (command) of Allah.”
Obedience to the Messenger of Allah is obedience to Allah, the Exalted. The Divine statement is:
إِنَّ الَّذِينَ يُبَايِعُونَكَ إِنَّمَا يُبَايِعُونَ اللَّهَ
“O Prophet! Those who were pledging allegiance to you were in fact pledging allegiance to Allah.”
On the occasion of Bay’at al-Ridwan, the Companions made a pledge that they would obey and follow the Prophet ﷺ in jihad, and that in the event of battle they would be martyred but would not choose to flee.