(80) باب الْخَوْخَةِ وَالْمَمَرِّ فِي الْمَسْجِدِ
Narrated Abu Sa`id Al-Khudri:
The Prophet (ﷺ) delivered a sermon and said, "Allah gave a choice to one of (His) slaves either to choose this world or what is with Him in the Hereafter. He chose the latter." Abu Bakr wept. I said to myself, "Why is this Sheikh weeping, if Allah gave choice to one (of His) slaves either to choose this world or what is with Him in the Here after and he chose the latter?" And that slave was Allah's Messenger (ﷺ) himself. Abu Bakr knew more than us. The Prophet (ﷺ) said, "O Abu Bakr! Don't weep. The Prophet (ﷺ) added: Abu- Bakr has favored me much with his property and company. If I were to take a Khalil from mankind I would certainly have taken Abu Bakr but the Islamic brotherhood and friendship is sufficient. Close all the gates in the mosque except that of Abu Bakr.
Reference: Sahih al-Bukhari 466
In-book reference: Book 8, Hadith 114
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 8, Hadith 455