رِيَاضُ الصَّالِحِينَ
Riyad as-Salihin 374
The Book of Miscellany
Visiting the Pious Persons, loving them and adoption of their company
وَعَنْ اِبْنِ عُمَرَ رَضِيَ اَللَّهُ عَنْهُمَا قَالَ: كَانَ اَلنَّبِيُّ صَلَّى اللَّه عَلَيْهِ وَسَلَّمَ يَزُورُ قُبَاءً رَاكِبًا وَمَاشِيًا، فيصلي فيه ركعتين، ((مُتَّفَقٌ عَلَيْهِ)) . وَفِي رِوَايَةٍ: كَانَ النَّبِيُّ صَلَّى اللَّه عَلَيْهِ وَسَلَّمَ يَأْتِي مَسْجِدَ قُبَاءٍ كُلَّ سَبْتٍ راكبًا وماشيًا وَكَانَ ابْنُ عُمَرَ يَفْعَلُهُ .
Ibn 'Umar (May Allah be pleased with them) reported: The Prophet (ﷺ) used to visit Quba', either mounted or on foot and would offer two Rak'ah prayer in the mosque there. [Al-Bukhari and Muslim]. Another narration is: The Prophet (ﷺ) used to visit the mosque at Quba' every Saturday (i.e., every week) either mounted or on foot, and Ibn 'Umar (May Allah be pleased with them) used to do the same thing.
Riyad as-Salihin, 374