"0 Messenger of Allah ﷺ the floods keep me from coming to the Masjid of my people. I would like you to come and pray in a place in my house so that I can take it as a Masjid." The Messenger of Allah ﷺ said: "We shall do that." "When the Messenger of Allah ﷺ entered he said: 'Where do you want (me to pray).' I showed him a comer of the house, and the Messenger of Allah ﷺ stood there, and we formed rows behind him, and he led us in praying two Rak'ahs." (Using translation from Nasāʾī 844)
أَنَّهُ قَالَ يَا رَسُولَ اللهِ إِنَّ السُّيُولَ تَحُولُ بَيْنِي وَبَيْنَ مَسْجِدِ قَوْمِي فَأُحِبُّ أَنْ تَأْتِيَنِي فَتُصَلِّي فِي مَكَانٍ مِنْ بَيْتِي أَتَّخِذُهُ مَسْجِدًا فَقَالَ رَسُولُ اللهِ ﷺ «سَنَفْعَلُ» فَلَمَّا دَخَلَ رَسُولُ اللهِ ﷺ قَالَ «أَيْنَ تُرِيدُ» فَأَشَرْتُ لَهُ إِلَى نَاحِيَةٍ مِنَ الْبَيْتِ فَقَامَ رَسُولُ اللهِ ﷺ وَصَفَّنَا خَلْفَهُ فَصَلَّى بِنَا رَكْعَتَيْنِ