It is narrated from Hazrat Jabir (may Allah be pleased with him) that I heard Hazrat Abu Saeed Khudri (may Allah be pleased with him) testifying about the Prophet (peace and blessings of Allah be upon him) that the Prophet (peace and blessings of Allah be upon him) forbade this, and also strictly forbade sitting facing the Qiblah at the time of relieving oneself.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 11089
Hadith Gradingحکم دارالسلام:حديث صحيح، وهذا إسناد ضعيف كسابقه ، وانظر ما قبله .