Abdullah bin Abbas reported,

The Messenger of Allah ﷺ went out during the illness in which he died with his head bound in a cloth. He sat on the pulpit, praised Allah and extolled Him, then said, "There is no one among the people who has been more generous to me with himself and his wealth than Abu Bakr bin Abu Quhafa. If I were to take any of the people as a close friend, I would have taken Abu Bakr as a close friend, but the bond of Islam is greater. Close every door that opens into this mosque except the door of Abu Bakr."

Bukhari 467

Sahih

حدثنا عبد الله بن محمد الجعفي قال حدثنا وهب بن جرير قال حدثنا أبي قال سمعت يعلى بن حكيم عن عكرمة

عن ابن عباس قال

خرج رسول الله ﷺ في مرضه الذي مات فيه عاصب رأسه بخرقة فقعد على المنبر فحمد الله وأثنى عليه ثم قال إنه ليس من الناس أحد أمن علي في نفسه وماله من أبي بكر بن أبي قحافة ولو كنت متخذا من الناس خليلا لاتخذت أبا بكر خليلا ولكن خلة الإسلام أفضل سدوا عني كل خوخة في هذا المسجد غير خوخة أبي بكر

البخاري 467صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Wicket gate and passageway in the masjid
Numbering
Darussalam 467
Bukhari 467