From Sahih Bukhari (Hadith 424):
Narrated `Itban bin Malik: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
Reference: Bukhari 424