Sunan Ibn Majah, Book 25, Hadith 3071 (In-Book) ⓘ
It was narrated that Muttalib said: “When he finished seven (circuits of Tawaf), I saw the Messenger of Allah come until he was parallel with the Corner, then he prayed two Rak’ah at the edge of the Mataf (area for Tawaf), and there was nothing between him and the people who were performing Tawaf.”
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنِ ابْنِ جُرَيْجٍ، عَنْ كَثِيرِ بْنِ كَثِيرِ بْنِ الْمُطَّلِبِ بْنِ أَبِي وَدَاعَةَ السَّهْمِيِّ، عَنْ أَبِيهِ، عَنِ الْمُطَّلِبِ، قَالَ رَأَيْتُ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ إِذَا فَرَغَ مِنْ سَبْعِهِ جَاءَ حَتَّى يُحَاذِيَ بِالرُّكْنِ فَصَلَّى رَكْعَتَيْنِ فى حَاشِيَةِ الْمَطَافِ وَلَيْسَ بَيْنَهُ وَبَيْنَ الطُّوَّافِ أَحَدٌ . قَالَ ابْنُ مَاجَهْ هَذَا بِمَكَّةَ خَاصَّةً .
also referenced under: Hadith 2958 (Reference) & Volume 4, Book 25, Hadith 2958 (DarusSalam)