Offering Salah in prohibited places

Q: What is the legal ruling on a man who performs the five obligatory Salahs (Prayer) in the bathroom?

A: The Five Compilers of Hadith except for Al-Nasa'y related on the authority of Abu Sa`id (may Allah be pleased with him) that the Prophet (peace be upon him) said, The whole earth is a place of Salah excepting bathrooms and graveyards. This report is classified as authentic by Al-Hakim in Al-Mustadrak and Ibn Hazm Al-Zhahiry. Similarly, Ibn Daqiq Al-`Eid referred in "Al-Elmam" to its authenticity. The report shows that graveyards and bathrooms are not proper places for performing Salah. Accordingly, Salah is forbidden and invalid in a bathroom.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.