The Prophet (ﷺ) came to my house and said, "Where do you like me to pray?" I pointed to a place. The Prophet then said, "Allahu Akbar", and we aligned behind him and he offered a two-rak`at prayer.
Sahih al-Bukhari Book 8, Hadith 74