The Qur'an tells us that the Prophet (saas) would rise to pray at night:
When the servant of Allah stands calling on Him, they almost swarm all over him. Say: "I call only upon my Lord and do not associate anyone else with Him." (Surat al-Jinn: 19-20)
Many verses speak of the Prophet's (saas) prayers. He would praise Allah by recalling His attributes. This is one of the prayers of the Prophet (saas) revealed in the Qur'an:
As the verse: "So call and go straight as you have been ordered to…" (Surat ash-Shura: 15) makes clear, the Prophet Muhammad (saas) was the last prophet charged with warning mankind. Like all the other messengers, the Prophet (saas) called people to the true path, to have faith in Allah, to live for the hereafter and to exercise good morality. The methods he employed, the way he explained things, and the style he used must remain examples for all Muslims, and when a Muslim invites people to the religion he must speak and behave in the manner of the Prophet (saas).
In order that people should appreciate the power of Allah and adopt a nobler morality out of awe of Him, the Prophet (saas) used to tell people of the might of Allah and of the proofs of the splendour in His creation. He thus became the means whereby they would love Allah and fear him. This verse describes how the Prophet (saas) was commanded to speak:
Some people choose errant paths for themselves that are full of errors, superstition and harmful ideas and methods. These can bring them nothing but loss in this world and the next. The Prophet (saas) was always at pains to call people to the best and most beautiful path, the path of Allah, and to be a means whereby people could be saved in this world and the next.
One of the most important errors that the Prophet (saas) has warned against is associating partners with Allah (shirk). As can be seen from the verses of the Qur'an, the Prophet (saas) always told people that Allah is the only god, that nothing had any power apart from Allah, and warned them against idolatry. He was commanded to do this in many verses, some of which read:
Say: "This is my way. I call to Allah with inner sight, I and all who follow me. Glory be to Allah! I am not one of the idolators!" (Surah Yusuf: 108)
As a verse of the Qur'an reveals, "… Muhammad is the Messenger of Allah and the Final Seal of the Prophets." (Surat al-Ahzab: 40), the Prophet Muhammad (saas) was sent to mankind as the last prophet. He was a living example of the sublime morality of Allah's last revelation. He was a friend of Allah and inspired humanity by his nearness to Him. He was His representative, noble in His eyes, and a friend to all believers.
In the Qur'an Allah has revealed that the Prophet (saas) possessed the finest morality, and says:
Nun. By the Pen and what they write down! By the blessing of your Lord, you are not mad. You will have a wage which never-fails. Indeed you are truly vast in character. So you will see and they will see which of you is mad. Your Lord knows best who is misguided from His Way and He knows best those who are guided. (Surat al-Qalam: 1-7)
The word "ghaib" in the Qur'an is used for hidden things that man cannot see or know. Things that will happen in the future are unknown to us, for instance. Yet everything to do with the future, the future of every individual, country, building and piece of furniture, is known to Allah. This is how the Prophet (saas) was told to explain that knowledge of the invisible (ilm-ul-ghaib) lies solely with Allah:
Some people think that when they intend to do something wrong, or plan a wicked act with others of like-mind, or gossip, they can conceal it from others. However, Allah knows everything an individual thinks, what enters his mind, what two people whisper to each other, and everything in heaven and earth. He witnesses everything a person does. Every individual will have to offer account in the hereafter for everything he thought he had done or said in secret.
During and after the time of the Prophet (saas) there have been those who denied that the Qur'an is a divine book. Some of these people even went so far as to claim it was the Prophet (saas) himself who had written it. Yet, it is evident that the Qur'an was not written by any human hand. The Qur'an is the word of Allah, and contains many miracles and is a superior wisdom, the like of which no human being could ever conceive. The Prophet (saas) reminded people of this, and announced that the Qur'an had been sent by Allah. These are some of the verses that refer to this: