Skip to content
Salasala-sa

Qiyam al-Layl: the Night Prayer, Rak'ahs and Virtue

Prayer at night, after sleep or before it, prayed two and two and closed with witr. It is the best prayer after the obligatory prayers.

Abu Hurayrah reported that the Prophet (peace be upon him) said in the hadith on fasting and prayer:

أَفْضَلُ الصَّلَاةِ بَعْدَ الْفَرِيضَةِ صَلَاةُ اللَّيْلِ

The best prayer after the obligatory prayers is the night prayer.

Sahih Muslim 1163

The basis of qiyam

Allah describes His servants:

تَتَجَافَىٰ جُنُوبُهُمْ عَنِ ٱلْمَضَاجِعِ يَدْعُونَ رَبَّهُمْ خَوْفًا وَطَمَعًا وَمِمَّا رَزَقْنَـٰهُمْ يُنفِقُونَ

Their sides leave their beds as they call on their Lord in fear and hope, and they spend out of what We have provided for them.

Quran 32:16

And in the description of the pious:

كَانُوا۟ قَلِيلًا مِّنَ ٱلَّيْلِ مَا يَهْجَعُونَ ﴿١٧﴾ وَبِٱلْأَسْحَارِ هُمْ يَسْتَغْفِرُونَ ﴿١٨﴾

Little of the night did they spend asleep, and in the hours before dawn they asked for forgiveness.

Quran 51:17-18

How qiyam is prayed

A man asked the Prophet about the night prayer, and he answered:

صَلَاةُ اللَّيْلِ مَثْنَى مَثْنَى، فَإِذَا خَشِيَ أَحَدُكُمُ الصُّبْحَ صَلَّى رَكْعَةً وَاحِدَةً، تُوتِرُ لَهُ مَا قَدْ صَلَّى

The night prayer is two and two. If one of you fears that dawn is coming, let him pray one rak'ah, which makes odd what he has prayed.

Sahih al-Bukhari 990

"Two and two" means a salam after every two rak'ahs, and then one rak'ah as witr if dawn is near. Witr is explained on the page witr prayer. The Prophet used to begin his night prayer with two light rak'ahs, which is on the page tahajjud prayer.

How many rak'ahs

The Prophet's answer above does not give a number. The numbers reported from what he did, eleven and thirteen rak'ahs, are on the page taraweeh prayer with their hadiths.

What is recited

The Prophet did not set surahs for the night prayer. Hudhayfah described one night with him: he began al-Baqarah, then an-Nisa, then Aal Imran, reading slowly, glorifying when he passed a verse of glorification, asking when he passed a request and seeking refuge when he passed a verse of refuge, and his ruku was about as long as his standing (Sahih Muslim 772). That is a description, not a requirement.

Qiyam in Ramadan

The reward for standing in prayer in Ramadan is in the hadith of Abu Hurayrah on the page taraweeh prayer: whoever stands in Ramadan out of faith and hope for reward has his earlier sins forgiven. Taraweeh is qiyam of Ramadan prayed in congregation at the masjid, with its number and congregation explained there.

The last ten nights of Ramadan

Aishah described the way the Prophet spent the last ten nights: when the last ten came, he tightened his waist wrapper, kept his nights alive and woke his family (Sahih al-Bukhari 2024). His standing in prayer in these nights was more intense than at other times. The hadith gives no number of rak'ahs for them, only keeping the night alive with prayer and dhikr.

Laylat al-Qadr

The dua taught for this night is on the page Laylatul Qadr dua. On Laylat al-Qadr there is a separate hadith with the same reward: whoever stands in prayer on it out of faith and hope for reward has his earlier sins forgiven (Sahih al-Bukhari 1901). It gives no special number of rak'ahs.

The last part of the night

Abu Hurayrah reported the hadith of the descent:

يَنْزِلُ رَبُّنَا تَبَارَكَ وَتَعَالَى كُلَّ لَيْلَةٍ إِلَى السَّمَاءِ الدُّنْيَا حِينَ يَبْقَى ثُلُثُ اللَّيْلِ الْآخِرُ يَقُولُ مَنْ يَدْعُونِي فَأَسْتَجِيبَ لَهُ مَنْ يَسْأَلُنِي فَأُعْطِيَهُ مَنْ يَسْتَغْفِرُنِي فَأَغْفِرَ لَهُ

Our Lord, blessed and exalted, comes down every night to the lowest heaven when the last third of the night remains. He says: who calls on Me, that I may answer him? Who asks Me, that I may give him? Who asks My forgiveness, that I may forgive him?

Sahih al-Bukhari 1145

Jabir heard the Prophet say:

إِنَّ فِي اللَّيْلِ لَسَاعَةً، لَا يُوَافِقُهَا رَجُلٌ مُسْلِمٌ يَسْأَلُ اللَّهَ خَيْرًا مِنْ أَمْرِ الدُّنْيَا وَالآخِرَةِ، إِلَّا أَعْطَاهُ إِيَّاهُ، وَذَلِكَ كُلَّ لَيْلَةٍ

In the night there is an hour in which no Muslim man asks Allah for any good of this world or the next except that He gives it to him, and that is every night.

Sahih Muslim 757

Questions about qiyam al-layl

How many rak'ahs is qiyam al-layl?

The numbers reported from the Prophet's practice are eleven and thirteen, and his answer "two and two" gives no number. Scholars have discussed which number is better.

What is the difference between qiyam and tahajjud?

Qiyam is the prayer in the night in general. Tahajjud is the night prayer after sleep, according to those who define it so. Its own page is tahajjud prayer.

Can I pray qiyam at home?

Zayd ibn Thabit's hadith urges the voluntary prayer at home (Sahih al-Bukhari 731). The Prophet's prayer with the Companions in the masjid for some nights in Ramadan is on the taraweeh page.

Should I begin qiyam with a dua?

The dua for opening the night prayer is reported from Ibn Abbas, and it is written in full on the page tahajjud prayer.

Must a person sleep before qiyam?

The hadith "two and two" speaks of the night prayer without tying it to sleep. In Aishah's description the Prophet slept in the first part of the night and then stood (Sahih Muslim 739).

How do I spend the last ten nights of Ramadan?

As in the hadith of Aishah: he kept the night alive, woke his family and tightened his waist wrapper (Sahih al-Bukhari 2024). The night prayer in those nights is the same two and two, followed by witr.

Related pages