عَطَاءٌ الْخُرَاسَانِيُّ، عَنْ عَوْفِ بْنِ مَالِكٍ
[Machine] The Messenger of Allah ﷺ used to observe iʿtikāf during the last ten days of Ramadan. When it was the twenty-third night, he said, "Whoever wants to observe qiyām with me tonight, should stay in my place until one-third of the night has passed." Then he left, and I went with him to Qutaybah. We said, "O Messenger of Allah, if you stay with us tonight?" He replied, "It is sufficient for a person to observe qiyām with the Imam until he finishes, and it will be counted as if he observed qiyām the whole night."
كَانَ رَسُولُ اللهِ ﷺ مُعْتَكِفًا فِي الْعَشْرِ الْأَوَاخِرِ مِنْ رَمَضَانَ فَلَمَّا أَنْ كَانَ لَيْلَةُ ثَلَاثٍ وَعِشْرِينَ قَالَ «مَنْ أَحَبَّ أَنْ يَقُومَ مَعَنَا هَذِهِ اللَّيْلَةَ فَلْيَقُمْ مَقَامِي حَتَّى انْقَضَى ثُلُثُ اللَّيْلِ» ثُمَّ انْصَرَفَ فَمَشَيْتُ مَعَهُ إِلَى قُتَيْبَةَ فَقُلْنَا يَا رَسُولَ اللهِ لَوْ قُمْتَ بِنَا هَذِهِ اللَّيْلَةَ؟ فَقَالَ رَسُولُ اللهِ ﷺ «بِحَسْبِ امْرِئٍ أَنْ يَقُومَ مَعَ الْإِمَامَ حَتَّى يَنْصَرِفَ يُحْسَبُ لَهُ قِيَامُ لَيْلَةٍ»