Sahih al-Bukhari 63:147
Narrated Abu Bakr:
I was with the Prophet (ﷺ) in the Cave. When I raised my head, I saw the feet of the people. I said, "O Allah's Messenger (ﷺ)! If some of them should look down, they will see us." The Prophet (ﷺ) said, "O Abu Bakr, be quiet! (For we are) two and Allah is the Third of us."
Reference
Sahih al-Bukhari 63:147
In-book reference
Book 63, Hadith 147
Arabic Text
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا هَمَّامٌ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، عَنْ أَبِي بَكْرٍ ـ رضى الله عنه ـ قَالَ كُنْتُ مَعَ النَّبِيِّ صلى الله عليه وسلم فِي الْغَارِ فَرَفَعْتُ رَأْسِي، فَإِذَا أَنَا بِأَقْدَامِ الْقَوْمِ، فَقُلْتُ يَا نَبِيَّ اللَّهِ، لَوْ أَنَّ بَعْضَهُمْ طَأْطَأَ بَصَرَهُ رَآنَا. قَالَ " اسْكُتْ يَا أَبَا بَكْرٍ، اثْنَانِ اللَّهُ ثَالِثُهُمَا ".