Muhammad (S.A.W) is to hold firmly unto Allah, and the terms of this are as outlined, defined and highlighted in the Qur’an revealed to him. The Message of Allah received is to be passed onto those he is sent to and not kept for private use. As a chosen Messenger, that is the definition of his duty and responsibility – being also, the model of and guide for believers.
O Apostle! Proclaim the (Message) which hath been sent to thee from thy Lord. If thou didst not, thou wouldst not have fulfilled and proclaimed His Mission. And Allah will defend thee from men (who mean mischief). For Allah guideth not those who reject faith. Qur’an 5:67
The nucleus of the Message of Allah had always remained the same as with previous Apostles. Muhammad (S.A.W) is for that reason not being given, receiving or to call men to other than the unity of Allah. In passing on the Message of Allah, he is to do exactly as he is commanded. Moreover, he is not to ask those he is to/has called to the Straight Path for any fee(s) or reward. It is Allah’s and He alone can reward. “Or is it that thou askest them for some recompense? But the recompense of thy Lord is best: He is the Best of those who give sustenance.” Qur’an 23:72
Thus, Muhammad (S.A.W) is not to heed the saying and activities of those who reject the Message. He is to ignore them and not only face Allah, but depend upon Him. This is because; He is the one to judge. Those in reference include the outright unbelievers and hypocrites who have a double face. In consequence, Muhammad (S.A.W) is invited (as is also required of believers), to be patient and persevere with any non-reception and sabotage by unbelievers and hypocrites.
So patiently persevere: for verily the promise of Allah is true: nor let those shake thy firmness, who have (themselves) no certainty of Faith. Qur’an 30:60