Sahih al-Bukhari 1171
Narrated Mujahid:
Somebody came to the house of Ibn `Umar and told him that Allah's Messenger (ﷺ)s had entered the Ka`ba. 
Ibn `Umar said, "I went in front of the Ka`ba and found that Allah's Messenger (ﷺ) had come out of the 
Ka`ba and I saw Bilal standing by the side of the gate of the Ka`ba. I said, 'O Bilal! Has Allah's 
Apostle (p.b.u.h) prayed inside the Ka`ba?' Bilal replied in the affirmative. I said, 'Where (did he 
pray)?' He replied, '(He prayed) Between these two pillars and then he came out and offered a two 
rak`at prayer in front of the Ka`ba.' " Abu `Abdullah said: Abu Huraira said, "The Prophet (p.b.u.h) 
advised me to offer two rak`at of Duha prayer (prayer to be offered after sunrise and before midday). " 
Itban (bin Malik) said, "Allah's Messenger (ﷺ) 
(p.b.u.h) and Abu Bakr, came to me after sunrise and we aligned behind the Prophet (p.b.u.h) and 
offered two rak`at."
حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ حَدَّثَنَا سَيْفُ بْنُ سُلَيْمَانَ الْمَكِّيُّ، سَمِعْتُ مُجَاهِدًا، يَقُولُ أُتِيَ ابْنُ عُمَرَ ـ رضى الله عنهما ـ فِي مَنْزِلِهِ فَقِيلَ لَهُ هَذَا رَسُولُ اللَّهِ صلى الله عليه وسلم قَدْ دَخَلَ الْكَعْبَةَ قَالَ فَأَقْبَلْتُ فَأَجِدُ رَسُولَ اللَّهِ صلى الله عليه وسلم قَدْ خَرَجَ، وَأَجِدُ بِلاَلاً عِنْدَ الْبَابِ قَائِمًا فَقُلْتُ يَا بِلاَلُ، صَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم فِي الْكَعْبَةِ قَالَ نَعَمْ‏.‏ قُلْتُ فَأَيْنَ قَالَ بَيْنَ هَاتَيْنِ الأُسْطُوَانَتَيْنِ‏.‏ ثُمَّ خَرَجَ فَصَلَّى رَكْعَتَيْنِ فِي وَجْهِ الْكَعْبَةِ‏.‏ قَالَ أَبُو عَبْدِ اللَّهِ قَالَ أَبُو هُرَيْرَةَ ـ رضى الله عنه ـ أَوْصَانِي النَّبِيُّ صلى الله عليه وسلم بِرَكْعَتَىِ الضُّحَى‏.‏ وَقَالَ عِتْبَانُ غَدَا عَلَىَّ رَسُولُ اللَّهِ صلى الله عليه وسلم وَأَبُو بَكْرٍ ـ رضى الله عنه ـ بَعْدَ مَا امْتَدَّ النَّهَارُ وَصَفَفْنَا وَرَاءَهُ فَرَكَعَ رَكْعَتَيْنِ‏.‏