It was narrated that Ibn ‘Abbas said:
“The Messenger of Allah (ﷺ) forbade performing prayer behind one who is engaged in conversation or one who is sleeping.”