It wasnarrated that Ibn 'Abbas said:
"The Messenger of Allah (ﷺ)forbade performing prayer behind one who is engaged in conversationorone who is sleeping."
English reference: Vol. 1, Book 5, Hadith 959
Arabic reference: Book 5, Hadith 1012
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.