Anas bin Malik reported,

The prayer was called to begin while a man was speaking privately with the Messenger of Allah ﷺ. He kept on speaking with him until the companions fell asleep, then the Prophet stood up and led the prayer.

Bukhari 6292

Sahih

حدثنا محمد بن بشار حدثنا محمد بن جعفر حدثنا شعبة عن عبد العزيز

عن أنس رضي الله عنه قال

أقيمت الصلاة ورجل يناجي رسول الله ﷺ فما زال يناجيه حتى نام أصحابه ثم قام فصلى

البخاري 6292صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Permission to enter
Chapter
Length of private conversation
Numbering
Darussalam 6292
Bukhari 6292