The Prophet ﷺ used to visit Quba, and Abdul-Rahman said, the mosque of Quba, both riding and walking.
حدثنا وكيع حدثنا سفيان وعبد الرحمن عن سفيان عن عبد الله بن دينار
أن النبي ﷺ كان يأتي قباء وقال عبد الرحمن مسجد قباء راكبا وماشيا
Its isnad is sahih. It is a repetition of 5199.