Jabir (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) weighed out dirhams for them and gave them overweight.
Brief Explanation
(Commentary on Hadith 2619)
From this hadith, it is understood that if the debtor, of his own accord and without any condition, gives more (than what was borrowed), then there is no objection in accepting it. And to repay a loan in a good manner means that he should return good (quality) wealth, or give something extra as well, and also express gratitude to the creditor.