Ibn ‘Umar said “The Apostle of Allaah ﷺ used to visit Quba on foot and riding. Ibn Numair added “and he used to offer two rak’ahs of prayer.”
أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يَأْتِي قُبَاءً مَاشِيًا وَرَاكِبًا زَادَ ابْنُ نُمَيْرٍ وَيُصَلِّي رَكْعَتَيْنِ