The Prophet ﷺ said, "Do not pray behind someone who is sleeping or someone who is talking."
حدثنا عبد الله بن مسلمة القعنبي حدثنا عبد الملك بن محمد بن أيمن عن عبد الله بن يعقوب بن إسحق عمن حدثه عن محمد بن كعب القرظي قال قلت له يعني لعمر بن عبد العزيز
أن النبي ﷺ قال لا تصلوا خلف النائم ولا المتحدث
No references are available.
Sourcing, hasan. Bayhaqi (2/289) narrated it from the hadith of Abu Dawud through him. It has another route with Ibn (al-Awsat), no. 5242, and Ibn Majah, no. 959, but its chain is extremely daif. The hadith also has a hasan route with Tabarani in