(2) باب مَسْجِدِ قُبَاءٍ
Narrated Nafi`:
Ibn `Umar never offered the Duha prayer except on two occasions: (1) Whenever he reached Mecca; and he always used to reach Mecca in the forenoon. He would perform Tawaf round the Ka`ba and then offer two rak`at at the rear of Maqam Ibrahim. (2) Whenever he visited Quba, for he used to visit it every Saturday. When he entered the Mosque, he disliked to leave it without offering a prayer. Ibn `Umar narrated that Allah's Messenger (ﷺ) used to visit the Mosque of Quba (sometime) walking and (sometime) riding. And he (i.e. Ibn `Umar) used to say, "I do only what my companions used to do and I don't forbid anybody to pray at any time during the day or night except that one should not intend to pray at sunrise or sunset."
Reference: Sahih al-Bukhari 1191, 1192
In-book reference: Book 20, Hadith 4
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 21, Hadith 283