[Machine] The Messenger of Allah ﷺ stayed in Quba' at Kalthum ibn Hareem's, the brother of Bani Amr ibn Awf, and it is also said that he stayed at Sa'd ibn Khaythamah's. He stayed in Bani Amr ibn Awf on Monday, Tuesday, Wednesday, and Thursday, where he established their mosque. He then left Bani Amr ibn Awf, and he reached Bani Salim ibn Awf on Friday and prayed Jumu'ah in the mosque that was inside the valley. Ibn Ishaq said, "Then the Messenger of Allah ﷺ stayed at Abu Ayyub's and ordered the construction of his mosque in that year."
نَزَلَ رَسُولُ اللهِ ﷺ بِقُبَاءَ عَلَى كُلْثُومِ بْنِ هَرِمٍ أَخِي بَنِي عَمْرِو بْنِ عَوْفٍ وَيُقَالُ بَلْ نَزَلَ عَلَى سَعْدِ بْنِ خَيْثَمَةَ فَأَقَامَ فِي بَنِي عَمْرِو بْنِ عَوْفٍ يَوْمَ الِاثْنَيْنِ وَالثُّلَاثَاءِ وَالْأَرْبِعَاءِ وَالْخَمِيسِ وَأَسَّسَ مَسْجِدَهُمْ وَخَرَجَ مِنْ بَنِي عَمْرِو بْنِ عَوْفٍ فَأَدْرَكَتْهُ الْجُمُعَةُ فِي بَنِي سَالِمِ بْنِ عَوْفٍ فَصَلَّى الْجُمُعَةَ فِي الْمَسْجِدِ الَّذِي بِبَطْنِ الْوَادِي قَالَ ابْنُ إِسْحَاقَ «ثُمَّ نَزَلَ رَسُولُ اللهِ ﷺ عَلَى أَبِي أَيُّوبَ وَأَمَرَ رَسُولُ اللهِ ﷺ بِبِنَاءِ مَسْجِدِهِ فِي تِلْكَ السَّنَةِ»