Sahih Muslim, Book 22, Hadith 148 (Muslim 4071)

Abu Rafi', the freed slave of Allah's Messenger (ﷺ), said:

Allah's Messenger (ﷺ) took as a loan (the rest of the hadith is the same), but with this variation that he (the Holy Prophet) said: Good amongst the servants of Allah is he who is best in paying off the debt.