Mentions in The Hadith
The merits of Masjid Quba are mentioned in nineteen Sahih al-Bukhari hadiths; thirteen Sahih Muslim hadiths; two Sunan Abu Dawood hadiths; and six Al-Muwatta hadiths.
Muhammad frequented the mosque and prayed there. This is referred to in a number of hadith:
Narrated 'Abdullah bin Dinar: Ibn 'Umar said, "The Prophet used to go to the Mosque of Quba every Saturday (sometimes) walking and (sometimes) riding." 'Abdullah (Ibn 'Umar) used to do the same —Collected by Muhammad al-Bukhari, Sahih al-Bukhari Volume 2, Book 21, Number 284 Narrated Ibn 'Umar: The Prophet used to go to the Mosque of Quba (sometimes) walking and sometimes riding. Added Nafi (in another narration), "He then would offer two Rakat (in the Mosque of Quba)." —Collected by Muhammad al-Bukhari, Sahih al-Bukhari Volume 2, Book 21, Number 285Read more about this topic: Quba Mosque