صحيح ابن خزيمه
Sahih Ibn Khuzaymah
جُمَّاعُ أَبْوَابِ الْأَفْعَالِ الْمُبَاحَةِ فِي الصَّلَاةِ
Chapters on Permissible Acts in Prayer
(323) بَابُ الرُّخْصَةِ فِي الِالْتِفَاتِ فِي الصَّلَاةِ عِنْدَ النَّائِبَةِ تَنُوبُ الْمُصَلِّي
323 Chapter: Permission to Turn in Prayer Due to an Emergency.
Hadith Number: 870
قال ابو بكر: في خبر ابي حازم ، عن سهل بن سعد ، وكان ابو بكر" لا يلتفت في صلاته، فلما اكثر الناس التصفيق التفت،" فإذا رسول الله صلى الله عليه وسلم في الصف، فاشار إليه رسول الله صلى الله عليه وسلم هكذا، يامره ان يصلي" قد امليته قبل بطوله
In the narration of Sayyiduna Sahl bin Sa’d (may Allah be pleased with him), it is mentioned that Sayyiduna Abu Bakr (may Allah be pleased with him) would not look here and there during the prayer. Then, when the people clapped excessively, he turned his attention and saw the Messenger of Allah (peace and blessings of Allah be upon him) seated in the row. So the Messenger of Allah (peace and blessings of Allah be upon him) signaled to him to continue the prayer. I have already mentioned this narration in full before.
تخریج الحدیث: