صحيح البخاري Sahih Bukhari كتاب العمل في الصلاة The Book of Dealing With Actions In As-Salat (The Prayer)
بَابُ مَنْ رَجَعَ الْقَهْقَرَى فِي صَلاَتِهِ، أَوْ تَقَدَّمَ بِأَمْرٍ يَنْزِلُ بِهِ:

(6) Chapter. Whoever came back or went forward during the Salat (prayer) because of some urgent need.

1 hadith
Hadith 1205
حَدَّثَنَا بِشْرُ بْنُ مُحَمَّدٍ ، أَخْبَرَنَا عَبْدُ اللَّهِ , قَالَ يُونُسُ , قَالَ الزُّهْرِيُّ , أَخْبَرَنِي أَنَسُ بْنُ مَالِكٍ ، " أَنَّ الْمُسْلِمِينَ بَيْنَا هُمْ فِي الْفَجْرِ يَوْمَ الِاثْنَيْنِ وَأَبُو بَكْرٍ رَضِيَ اللَّهُ عَنْهُ يُصَلِّي بِهِمْ ، فَفَجِأَهُمُ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَدْ كَشَفَ سِتْرَ حُجْرَةِ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا فَنَظَرَ إِلَيْهِمْ وَهُمْ صُفُوفٌ ، فَتَبَسَّمَ يَضْحَكُ فَنَكَصَ أَبُو بَكْرٍ رَضِيَ اللَّهُ عَنْهُ عَلَى عَقِبَيْهِ وَظَنَّ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُرِيدُ أَنْ يَخْرُجَ إِلَى الصَّلَاةِ ، وَهَمَّ الْمُسْلِمُونَ أَنْ يَفْتَتِنُوا فِي صَلَاتِهِمْ فَرَحًا بِالنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ حِينَ رَأَوْهُ فَأَشَارَ بِيَدِهِ أَنْ أَتِمُّوا ثُمَّ دَخَلَ الْحُجْرَةَ وَأَرْخَى السِّتْرَ وَتُوُفِّيَ ذَلِكَ الْيَوْمَ " .
Narrated Anas bin Malik: While Abu Bakr was leading the people in the morning prayer on a Monday, the Prophet came towards them suddenly having lifted the curtain of 'Aisha's house, and looked at them as they were standing in rows and smiled. Abu Bakr tried to come back thinking that Allah's Apostle wanted to come out for the prayer. The attention of the Muslims was diverted from the prayer because they were delighted to see the Prophet. The Prophet waved his hand to them to complete their prayer, then he went back into the room and let down the curtain. The Prophet expired on that very day.
Hadith Reference Sahih Bukhari / The Book of Dealing With Actions In As-Salat (The Prayer) / Hadith: 1205
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة