It is narrated from Sayyiduna Abdullah bin Abi Rabi'ah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) borrowed from him a sum of a little over ten thousand. Then when the Messenger of Allah (peace and blessings be upon him) returned on the occasion of the Battle of Hunayn and wealth came to him (peace and blessings be upon him), he (peace and blessings be upon him) called Ibn Abi Rabi'ah and said: "Take what you lent. May Allah bless you in your wealth and your children. Indeed, the reward for a loan is (its) repayment and gratitude (to the lender)."
Related hadith on this topic