[Machine] He said, when the last ten days came, the Messenger of Allah ﷺ observed i'tikaf in the mosque. When the Prophet ﷺ offered the afternoon prayer on the twenty-first day, he said, "We will be standing tonight, if Allah wills. So whoever among you wishes to stand (for prayer), let him do so." It was the night of the twenty-third that he prayed in congregation after the 'Isha' prayer. He led people in prayer until one-third of the night had passed, then he left. When the night of the twenty-fourth came, he did not offer any prayer; nor did he stand (for prayer). When the night of the twenty-fifth came, he stood (for prayer) after offering the afternoon prayer of the twenty-fourth day. He said, "We will be standing tonight, if Allah wills, meaning the night of the twenty-fifth. So whoever among you wishes to stand (for prayer), let him do so." He said, "Abu Dharr, we have been in a hurry (for standing in prayer) on your behalf." So the Prophet ﷺ led us in prayer until two-thirds of the night had passed, then he left and went to his small room in the mosque. I said to him, "O Messenger of Allah, we were hoping that you would stand with us until morning." He said, "O Abu Dharr, when you have offered the prayer with your Imam and he leaves, it is recorded that you have stood for the whole night."
أَنَّهُ قَالَ لَمَّا كَانَ الْعَشْرُ الْأَوَاخِرُ اعْتَكَفَ رَسُولُ اللهِ ﷺ فِي الْمَسْجِدِ فَلَمَّا صَلَّى النَّبِيُّ ﷺ صَلَاةَ الْعَصْرِ مِنْ يَوْمِ اثْنَيْنِ وَعِشْرِينَ قَالَ إِنَّا قَائِمُونَ اللَّيْلَةَ إِنْ شَاءَ اللهُ فَمَنْ شَاءَ مِنْكُمْ أَنْ يَقُومَ فَلْيَقُمْ وَهِيَ لَيْلَةُ ثَلَاثٍ وَعِشْرِينَ فَصَلَّاهَا النَّبِيُّ ﷺ جَمَاعَةً بَعْدَ الْعَتَمَةِ حَتَّى ذَهَبَ ثُلُثُ اللَّيْلِ ثُمَّ انْصَرَفَ فَلَمَّا كَانَ لَيْلَةُ أَرْبَعٍ وَعِشْرِينَ لَمْ يُصَلِّ شَيْئًا وَلَمْ يَقُمْ فَلَمَّا كَانَ لَيْلَةُ خَمْسٍ وَعِشْرِينَ قَامَ بَعْدَ صَلَاةِ الْعَصْرِ يَوْمَ أَرْبَعٍ وَعِشْرِينَ فَقَالَ إِنَّا قَائِمُونَ اللَّيْلَةَ إِنْ شَاءَ اللهُ يَعْنِي لَيْلَةَ خَمْسٍ وَعِشْرِينَ فَمَنْ شَاءَ فَلْيَقُمْ فَصَلَّى بِالنَّاسِ حَتَّى ذَهَبَ ثُلُثُ اللَّيْلِ ثُمَّ انْصَرَفَ فَلَمَّا كَانَ لَيْلَةُ سِتٍّ وَعِشْرِينَ لَمْ يَقُلْ شَيْئًا وَلَمْ يَقُمْ فَلَمَّا كَانَ عِنْدَ صَلَاةِ الْعَصْرِ مِنْ يَوْمِ سِتٍّ وَعِشْرِينَ قَامَ فَقَالَ إِنَّا قَائِمُونَ إِنْ شَاءَ اللهُ يَعْنِي لَيْلَةَ سَبْعٍ وَعِشْرِينَ فَمَنْ شَاءَ أَنْ يَقُومَ فَلْيَقُمْ قَالَ أَبُو ذَرٍّ فَتَجَلَّدْنَا لِلْقِيَامِ فَصَلَّى بِنَا النَّبِيُّ ﷺ حَتَّى ذَهَبَ ثُلُثَا اللَّيْلِ ثُمَّ انْصَرَفَ إِلَى قُبَّتِهِ فِي الْمَسْجِدِ فَقُلْتُ لَهُ إِنْ كُنَّا لَقَدْ طَمِعْنَا يَا رَسُولَ اللهِ أَنْ تَقُومَ بِنَا حَتَّى تُصْبِحَ فَقَالَ يَا أَبَا ذَرٍّ إِنَّكَ إِذَا صَلَّيْتَ مَعَ إِمَامِكَ وَانْصَرَفْتَ إِذَا انْصَرَفَ كُتِبَ لَكَ قُنُوتُ لَيْلَتِكَ