Reference: Sharh ‘Umdatil-Fiqh – Tape No.9, Question No.39
Question: It is popular in new builds to have the bathroom inside the bedroom; would it then be permissible to pray in the bedroom?
Response: Yes; what is the harm [in doing so]? As long as the bathroom is separated by a wall – that there is a wall between you and the bathroom, then what is the harm in praying in the bedroom?