"I saw the Prophet when he had completed his seven (circuits of Tawaf); he came to the edge of the Mataf and prayed two Rakahs, with nothing in between him and people who were circumambulating." (Daif) (Using translation from Nasāʾī 2959)
رَأَيْتُ النَّبِيَّ ﷺ «خَرَجَ حِينَ فَرَغَ مِنْ طَوَافِهِ إِلَى حَاشِيَةِ الْمَطَافِ فَصَلَّى رَكْعَتَيْنِ وَلَيْسَ بَيْنَهُ وَبَيْنَ الطَّوَافَيْنِ أَحَدٌ»