Muhammad (pbuh) preached to the people to trust in Allah (swt). His whole life was a sublime example of the precept. In the loneliness of Makkah, in the midst of persecution and danger, in adversity and tribulations, and in the thick of enemies in the battles of Uhud and Hunain, complete faith and trust in Allah (swt) appears as the dominant feature in his life. However great the danger that confronted him, he never lost hope and never allowed himself to be unduly agitated. Abu Talib knew the feelings of the Quraish when the Prophet (pbuh) started his mission. He also knew the lengths to which the Quraish could go, and requested the Prophet (pbuh) to abandon his mission, but the latter calmly replied,
"Dear uncle, do not go by my loneliness. Truth will not go unsupported for long. The whole of Arabia and beyond will one day espouse its cause." [Ibn Hisham, Sirat-ur-Rasul]
When the attitude of the Quraish became more threatening, Abu Talib again begged his nephew to renounce his mission but the Prophet's (pbuh) reply was:
"O my uncle, if they placed the sun in my right hand and the moon in my left, to force me to renounce my work, verily I would not desist therefrom until Allah made manifest His cause, or I perished in the attempt." [Ibid.]
To another well-wisher, he said,
"Allah will not leave me forlorn."
A dejected and oppressed disciple was comforted with the words:
"By Allah, the day is near when this faith will reach its pinnacle and none will have to fear anyone except Allah." [Sahih Bukhari]
It was the same trust in Allah (swt) which emboldened the Prophet (pbuh) to say his prayers openly in the haram in the teeth of opposition. The Quraish were once collected there and were conspiring to put an end to his life when he next entered the haram. His young daughter Fatima, who happened to overhear their talk rushed weeping to her father and told him of the designs of the Quraish . He consoled her, did his ablutions and went to the Ka'bah to say prayers. There was only consternation among the Quraish when they saw him. [Ahmed, Musnad]
Then leaving his house for Madinah he asked Ali (ra) to sleep on his bed and told him,
"Do not worry, no one will be able to do you any harm." (Tabari, Ibn Hisham)
Even though the enemies had surrounded the house, he left the house reciting the Quranic verse:
"We have set a barricade before them and a barricade behind them and (thus) have covered them so that they see not." [Qur'an 36:9]
Abu Bakr was frightened when pursuers came close to the cavern in which he and Prophet Muhammad (pbuh) were hiding during their flight, but the Prophet (pbuh) heartened him,
"Grieve not. Allah is with us."
A guard was kept at the Prophet's house in Madinah because of the danger that surrounded him but he had it withdrawn when the Quranic verse was revealed:
"Allah will protect you from the people." [Qur'an 5:67]
A man was caught waiting in ambush to assault the Prophet (pbuh) but he was directed to be released with the words,
"Even if this man wanted to kill me, he could not." [Ahmed, Musnad]
A Jewess from Khaibar had put poison in the Prophet's (pbuh) food. He spat it out after taking a morsel but a disciple who had his fill died the next day. The Jewess was brought before the prophet (pbuh) who questioned her:
"Why did you do this?" "To kill you," was her defiant reply. She was told, "Allah would not have allowed you to do it." [Sahih Muslim]
In the battle of Uhud when the rear guard action of the Makkan army had disorganized the Muslim army and had turned the tables, the Prophet (pbuh) stood as firm as a rock even though he had suffered personal injuries. When Abu Sufyan taunted the Muslims and shouted "Victory to hubal!" (hubal was one of their idols), the Prophet (pbuh) asked Umar (ra) to shout back, "Allah is our protector and friend. You have no protector and friend. Allah is Great, Magnificent." [Ibn Hisham]
Again in the battle of Hunain, when the unexpected assault of the army had swept the Muslim force off its feet and a defeat seemed imminent, the Prophet (pbuh) did not yield ground. With trust in Allah (swt) he showed such courage that the Muslim army rallied behind him to win a signal victory.