The Command to stand at Night (in Prayer)
Allah commands His Messenger to cease being wrapped up, and this means to be covered during the night. He commands him to get up and stand in prayer to His Lord. This is as Allah says,
تَتَجَافَى جُنُوبُهُمْ عَنِ الْمَضَاجِعِ يَدْعُونَ رَبَّهُمْ خَوْفاً وَطَمَعاً وَمِمَّا رَزَقْنَـهُمْ يُنفِقُونَ
Their sides forsake their beds, to invoke their Lord in fear and hope, and they spend out of what We have bestowed on them. (32;16)
Thus, the Prophet did as Allah ordered him, by standing for prayer at night. This was obligatory upon him alone, as Allah said,
وَمِنَ الَّيْلِ فَتَهَجَّدْ بِهِ نَافِلَةً لَّكَ عَسَى أَن يَبْعَثَكَ رَبُّكَ مَقَاماً مَّحْمُودًا
And in some parts of the night offer the Salah with it (the Qur'an), as an additional prayer for you. It may be that your Lord will raise you to Maqam Mahmud. (17;79)
Here Allah explains how much prayer he should perform. Allah says,
يَا أَيُّهَا الْمُزَّمِّلُ
قُمِ اللَّيْلَ إِلاَّ قَلِيلً