Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:23897Rawḥ > ʿUthmān b. Saʿd > ʿAbdullāh b. Abū Mulaykah > Ibn ʿUmar

[Machine] On the day of victory, they performed the circumambulation around the Ka'bah, Safa, and Marwa. Then, the Prophet ﷺ entered the Ka'bah, and Ibnu Umar missed him. When he was informed of his entry, he hurried to climb on the necks of the men, and he entered to follow the Prophet ﷺ in his prayer. He found him at the door, outside. He asked Bilal, the caller to prayer, how did the Prophet ﷺ pray when he entered the Ka'bah? Bilal said, he prayed two Rak'ahs towards the direction of his face, then he supplicated to Allah for a while, and then he came out.  

أحمد:٢٣٨٩٧حَدَّثَنَا رَوْحٌ حَدَّثَنَا عُثْمَانُ بْنُ سَعْدٍ حَدَّثَنَا عَبْدُ اللهِ بْنُ أَبِي مُلَيْكَةَ حَدَّثَنِي ابْنُ عُمَرَ قَالَ

لَمَّا كَانَ يَوْمُ الْفَتْحِ قَضَوْا طَوَافَهُمْ بِالْبَيْتِ وَبِالصَّفَا وَالْمَرْوَةِ ثُمَّ إِنَّ النَّبِيَّ ﷺ دَخَلَ الْبَيْتَ فَغَفَلَ عَنْهُ ابْنُ عُمَرَ فَلَمَّا أُنْبِئَ بِدُخُولِهِ أَقْبَلَ يَرْكَبُ أَعْنَاقَ الرِّجَالِ فَدَخَلَ يَقْتَدِي بِالنَّبِيِّ ﷺ كَيْفَ يُصَلِّي؟ فَتَلَقَّاهُ عِنْدَ الْبَابِ خَارِجًا فَسَأَلَ بِلَالًا الْمُؤَذِّنَ كَيْفَ صَنَعَ النَّبِيُّ ﷺ حِينَ دَخَلَ الْكَعْبَةَ؟ قَالَ صَلَّى رَكْعَتَيْنِ حِيَالَ وَجْهِهِ ثُمَّ دَعَا اللهَ ﷻ سَاعَةً ثُمَّ خَرَجَ