وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ يَقُولُ: اخْتَلَفَ رَجُلَانِ أَوِ امْتَرَيَا، رَجُلٌ مِنْ بَنِي خُدْرَةَ وَرَجُلٌ مِنْ بَنِي عَمْرِو بْنِ عَوْفٍ فِي الْمَسْجِدِ الَّذِي أُسِّسَ عَلَى التَّقْوَى، قَالَ الْخُدْرِيُّ: هُوَ مَسْجِدُ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ، وَقَالَ الْعَمْرِيُّ: هُوَ مَسْجِدُ قُبَاءَ، فَأَتَيَا رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فَسَأَلَاهُ عَنْ ذَلِكَ، فَقَالَ: ”هُوَ هَذَا الْمَسْجِدُ لِمَسْجِدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ، وَقَالَ: فِي ذَاكَ خَيْرٌ كَثِيرٌ، يَعْنِي مَسْجِدَ قُبَاءَ“ [سورة التوبة: 108]
It is narrated from Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) that two men from Banu Khudrah and Banu 'Amr bin 'Awf had a disagreement regarding which mosque is meant in the Noble Qur'an where it is mentioned that the foundation of that mosque was laid on piety from the very first day. The man from Banu Khudrah said that it refers to Masjid Nabawi, while the man from Banu 'Amr bin 'Awf said: it refers to Masjid Quba. Both of them came to the Messenger of Allah (peace and blessings be upon him) and asked him about this matter. The Messenger of Allah (peace and blessings be upon him) said: It refers to this mosque of mine, i.e., Masjid Nabawi; however, there is also much goodness and virtue in Masjid Quba.