Abu Dharr reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, whoever stands for prayer in Ramadan with the Imam until he is finished, it will be recorded as if he prayed the entire night.”
Al-Tirmidhi said, “The scholars differed over the night prayer in Ramadan. Some of them are of the view that it is prayed with forty-one cycles including witr prayer, which is the opinion of the people of Medina as practiced in Medina. Most of the scholars are of the opinion that it is prayed with twenty cycles, as narrated from Umar, Ali, and others among the companions of the Prophet; it is the opinion of Sufyan al-Thawri, Ibn al-Mubarak, and Al-Shafi’i. Al-Shafi’i said: Such was done in our land of Mecca, praying twenty cycles. Ahmad said it has been narrated in various ways, and he did not fix any number for it.”
Source: Sunan al-Tirmidhī 806
Grade: Sahih (authentic) according to Al-Tirmidhi
عَنْ أَبِي ذَرٍّ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنَّهُ مَنْ قَامَ مَعَ الإِمَامِ يعنى في رمضان حَتَّى يَنْصَرِفَ كُتِبَ لَهُ قِيَامُ لَيْلَةٍ
قال الترمذي وَاخْتَلَفَ أَهْلُ الْعِلْمِ فِي قِيَامِ رَمَضَانَ فَرَأَى بَعْضُهُمْ أَنْ يُصَلِّيَ إِحْدَى وَأَرْبَعِينَ رَكْعَةً مَعَ الْوِتْرِ وَهُوَ قَوْلُ أَهْلِ الْمَدِينَةِ وَالْعَمَلُ عَلَى هَذَا عِنْدَهُمْ بِالْمَدِينَةِ وَأَكْثَرُ أَهْلِ الْعِلْمِ عَلَى مَا رُوِيَ عَنْ عُمَرَ وَعَلِيٍّ وَغَيْرِهِمَا مِنْ أَصْحَابِ النَّبِيِّ صلى الله عليه وسلم عِشْرِينَ رَكْعَةً وَهُوَ قَوْلُ سُفْيَانَ الثَّوْرِيِّ وَابْنِ الْمُبَارَكِ وَالشَّافِعِيِّ وَقَالَ الشَّافِعِيُّ وَهَكَذَا أَدْرَكْتُ بِبَلَدِنَا بِمَكَّةَ يُصَلُّونَ عِشْرِينَ رَكْعَةً وَقَالَ أَحْمَدُ رُوِيَ فِي هَذَا أَلْوَانٌ وَلَمْ يَقْضِ فِيهِ بِشَيْءٍ
806 سنن الترمذي كتاب الصوم باب ما جاء في قيام شهر رمضان
2/158 المحدث الترمذي خلاصة حكم المحدث حسن صحيح في سنن الترمذي