Narrated Abdullah ibn Abbas:
The Prophet (ﷺ) said: Do not pray behind a sleeping or a talking person.