TABARANI 17747:
from Abū Zayd a freed slave of Thaʿlabah —
[Machine] He informed him that Ma'qil ibn abi Maqil al-Asadi, a companion of the Prophet ﷺ, narrated to him: "The Messenger of Allah ﷺ forbade facing the two qiblas (Kaaba in Makkah and Masjid al-Aqsa in Jerusalem) while in a state of impurity (due to feces and urine)."
الطبراني ١٧٧٤٧:
عن ابو زيد ا مولى oف ثعلبه —
أَخْبَرَهُ أَنَّ مَعْقِلَ بْنَ أَبِي مَعْقِلٍ الْأَسَدِيَّ مِنْ أَصْحَابِ النَّبِيِّ ﷺ حَدَّثَهُ «أَنَّ رَسُولَ اللهِ ﷺ» نَهَى أَنْ تُسْتَقْبَلَ الْقِبْلَتَانِ بِالْغَائِطِ وَالْبَوْلِ
hadithunlocked.com