I’ve heard that praying behind someone who is sleeping is forbidden. I was praying fair but someone was sleeping in the same room I didn’t face towards them while I was praying is my prayer valid.
All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
The Prayer Is not Invalidated by the Presence of a Sleeping Person in the Room All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad, sallallaahu`alayhi wa sallam, is His slave and Messenger Your Prayer is valid, and you do not have to repeat it. The Prayer is not invalidated just because of the presence of a sleeping person in the room. And we do not know any scholar who said that Prayer is invalidated just because a person is sleeping in the room.
Allah Knows best.
You can search for fatwa through many choices