The Prophet ﷺ arrived (at Mecca) in the year of the Conquest (of Mecca) while Usama was riding behind him on (his she-camel)'. Al-Qaswa.' Bilal and ʿUthman bin Talha were accompanying him. When he made his she-camel kneel down near the Kaʿba, he said to ʿUthman, "Get us the key (of the Kaʿba). He brought the key to him and opened the gate (of the Kaʿba), for him. The Prophet, Usama, Bilal and ʿUthman (bin Talha) entered the Kaʿba and then closed the gate behind them (from inside). The Prophet ﷺ stayed there for a long period and then came out. The people rushed to get in, but I went in before them and found Bilal standing behind the gate, and I said to him, "Where did the Prophet ﷺ pray?" He said, "He prayed between those two front pillars." The Kaʿba was built on six pillars, arranged in two rows, and he prayed between the two pillars of the front row leaving the gate of the Kaʿba at his back and facing (in prayer) the wall which faces one when one enters the Kaʿba. Between him and that wall (was the distance of about three cubits). But I forgot to ask Bilal about the number of rakʿat the Prophet ﷺ had prayed. There was a red piece of marble at the place where he (i.e. the Prophet) had offered the prayer. (Using translation from Bukhārī 4400)
أَقْبَلَ النَّبِيُّ ﷺ عَامَ الْفَتْحِ وَهُوَ مُرْدِفٌ أُسَامَةَ عَلَى الْقَصْوَاءِ وَمَعَهُ بِلَالٌ وَعُثْمَانُ بْنُ طَلْحَةَ الْحَجَبِيُّ حَتَّى أَنَاخَ عِنْدَ الْبَيْتِ ثُمَّ قَالَ لِعُثْمَانَ ايتِنَا بِمِفْتَاحٍ فَجَاءَهُ بِالْمِفْتَاحِ فَفَتَحَ لَهُ الْبَابَ فَدَخَلَ النَّبِيُّ ﷺ وَأُسَامَةُ وَبِلَالٌ وَعُثْمَانُ ثُمَّ أَغْلَقُوا عَلَيْهِمُ الْبَابَ فَمَكَثَ نَهَارًا طَوِيلًا ثُمَّ خَرَجَ وَابْتَدَرَ النَّاسُ الدُّخُولَ فَسَبَقْتُهُمْ فَوَجَدْتُ بِلَالًا قَائِمًا وَرَاءَ الْبَابِ فَقُلْتُ لَهُ أَيْنَ صَلَّى النَّبِيُّ ﷺ؟ قَالَ صَلَّى بَيْنَ الْعَمُودَيْنِ الْمُقَدَّمَيْنِ وَكَانَ الْبَيْتُ عَلَى سِتَّةِ أَعْمِدَةٍ شَطْرَيْنِ صَلَّى بَيْنَ الْعَمُودَيْنِ مِنَ الشَّطْرِ الْمُقَدَّمِ وَجَعَلَ بَابَ الْبَيْتِ خَلْفَ ظَهْرِهِ فَاسْتَقْبَلَ بِوَجْهِهِ الَّذِي يَسْتَقْبِلُكَ حِينَ تَلِجُ وَالْبَيْتُ بَيْنَهُ وَبَيْنَ الْجِدَارِ قَالَ وَنَسِيتُ أَنْ أَسْأَلَهُ كَمْ صَلَّى وَعِنْدَ الْمَكَانِ الَّذِي صَلَّى فِيهِ مَرْمَرَةٌ حَمْرَاءُ وَرَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ مُحَمَّدٍ عَنْ سُرَيْجٍ