Sahih al-Bukhari 3658
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لَوْ كُنْتُ مُتَّخِذًا مِنْ هَذِهِ الأُمَّةِ خَلِيلاً لاَتَّخَذْتُهُ "
Narrated `Abdullah bin Abi Mulaika:
The people of Kufa sent a letter to Ibn Az-Zubair, asking about (the inheritance of) (paternal) grandfather. He replied that the right of the inheritance of (paternal) grandfather is the same as that of father if the father is dead) and added, "Allah's Messenger (ﷺ) said, ' If I were to take a Khalil from this nation, I would have taken him (i.e. Abu Bakr).
Full reference and source
Sahih al-Bukhari 3658 In-book : Book 62, Hadith 10 USC-MSA web (English) : Vol. 5, Book 57, Hadith 10 (deprecated)
View source on Sunnah.com (opens in a new tab)