It is narrated from Hazrat Ma'qil (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade us from facing the Qiblah while urinating or defecating.
Hadith Referenceمسند احمد / من مسند القبائل / 27292
Hadith Gradingحکم دارالسلام:إسناده ضعيف الجهالة أبى زيد مولي ثعلبة