Rubai narrated from his father, from his grandfather, that the Prophet ﷺ borrowed from him thirty or forty thousand when he went to fight at Hunayn. When he returned, he repaid it to him. Then the Prophet ﷺ said to him, "May Allah bless you in your family and your wealth. The reward for a loan is repayment and gratitude."
ي، عن أبيه، عن جده أن النبي ﷺ استلف منه حين غزا حنينا ثلاثين أو أربعين ألفا، فلما قدم قضاها إياه. ثم قال له النبي ﷺ: بارك الله لك في أهلك ومالك. إنما جزاء السلف الوفاء والحمد.
Nasai (4683), Ibn Majah (2424), Ahmad (16410), and Bayhaqi (5/355) all narrated it from the hadith of Ismail bin Ibrahim bin Abdullah bin Abu Rabia Makhzumi, with his chain of transmission, in similar wording. However, in Musnad Ahmad it was inverted to Ibrahim bin Ismail, and the correct form is what we have mentioned. Ibrahim bin Abdullah is Ibrahim bin Abdul-Rahman bin Abdullah, attributed to his grandfather. A group of narrators reported from him, Ibn Hibban deemed him reliable, and Bukhari included him in his Sahih. So at the very least, his hadith is hasan.