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مسند احمد / مسند الشاميين / 17838
Hadith Gradingحکم دارالسلام:إسناده ضعيف لجهالة أبى زيد مولى بني ثعلبة