AbdurRahman reported on the authority of his mother: When the Messenger of Allah ﷺ passed any place from the house of Ya'la,--the narrator Ubaydullah forgot its name--he faced the House (the Ka'bah) and supplicated. (Using translation from Abū Dāʾūd 2007)
أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا دَخَلَ مَكَانًا مِنْ دَارِ يَعْلَى نَسَبَهُ عُبَيْدُ اللهِ اسْتَقْبَلَ الْبَيْتَ فَدَعَا