Ikrima reported,

Ibn Abbas said regarding the grandfather, "As for the one to whom the Messenger of Allah ﷺ said, 'Had I taken anyone from this nation as a close friend, I would have taken him,' he ruled that the grandfather is treated as a father," meaning Abu Bakr.

Ahmad 3385

Sahih

حدثنا إسماعيل أنبأنا أيوب

عن عكرمة قال

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

أحمد 3385صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 3385
Ahmad 3385