Al-Kāfi

Hadith 160
willrightsinheritance
5- ابْنُ مَحْبُوبٍ عَنْ أَبِي وَلادٍ قَالَ سَأَلْتُ أَبَا عَبْدِ اللهِ (عَلَيْهِ السَّلام) عَنْ رَجُلٍ مَرِيضٍ أَقَرَّ عِنْدَ الْمَوْتِ لِوَارِثٍ بِدَيْنٍ لَهُ عَلَيْهِ قَالَ يَجُوزُ ذَلِكَ قُلْتُ فَإِنْ أَوْصَى لِوَارِثٍ بِشَيْ‏ءٍ قَالَ جَائِزٌ.
5. Ibn Mahbub has narrated from abu Wallad who has narrated the following: “I once asked abu ‘Abd Allah (a.s.), about the case of a man who in his illness at the time of his death confirms his owing a certain amount of debts to one of his heirs. He (the Imam) said, ‘It is permissible.’ I asked about his confirming his owing ‘something’ to one of his heirs. He (the Imam) said, ‘It is permissible.’”
Source: Shaykh Muḥammad b. Yaʿqūb al-Kulaynī