Sunan Ibn Majah Book 15, Hadith 17
That during the time of the Messenger of Allah (ﷺ), a man pursued a debtor who owed him ten Dinar, and he said: “I do not have anything to give you.” He (the creditor) said: “No, by Allah, I will not leave you until you pay the debt or you bring me a guarantor.” Then he dragged him to the Prophet (ﷺ) and the Prophet (ﷺ) said to him: “How long will you wait?” He said: “One month.” The Messenger of Allah (ﷺ) said: “I will be a guarantor for him.” Then he came to him at the time the Prophet (ﷺ) had said, and the Prophet (ﷺ) said to him: “Where did you get this from?” He said: “From a mine.” He said: “There is nothing good in it,” and he paid the debt for him.
I heard Abu Umamah Al-Bahil say: “I heard the Messenger of Allah(ﷺ) say: “The guarantor is responsible and the debt must be repaid.' ”
“I heard 'Abdullah bin Abu Qatadah narrate from his father that a corpse was brought to the Prophet (ﷺ) for him to offer the funeral prayer, and he said: 'Pray for your companion, for he owes a debt.' Abu Qatadah said: 'I will stand surely for him?' The Prophet (ﷺ) said: 'In full?' He said: 'In full.” And the debt he owed was eighteen or nineteen Dirham.”