Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:12599Abū Ḥāmid Aḥmad b. ʿAlī b. Aḥmad al-Rāzī al-Ḥāfiẓ > Zāhir b. Aḥmad > Abū Bakr ʿAbdullāh b. Muḥammad b. Ziyād al-Naysābūrī > Abū al-Azhar > ʿAbd al-Razzāq > Hishām

[Machine] If he has performed Hajj, then a third (of his wealth) should be assigned. But if he has not performed Hajj, then it should be from all of his wealth, either as a will or without a will, while he is in debt.  

البيهقي:١٢٥٩٩وَقَدْ أَخْبَرَنَا أَبُو حَامِدٍ أَحْمَدُ بْنُ عَلِيِّ بْنِ أَحْمَدَ الرَّازِيُّ الْحَافِظُ أنا زَاهِرُ بْنُ أَحْمَدَ ثنا أَبُو بَكْرٍ عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ زِيَادٍ النَّيْسَابُورِيُّ ثنا أَبُو الْأَزْهَرِ ثنا عَبْدُ الرَّزَّاقِ ثنا هِشَامٌ عَنِ الْحَسَنِ فِي الرَّجُلِ يُوصِي أَنْ يُحَجَّ عَنْهُ قَالَ

إِنْ كَانَ قَدْ حَجَّ فَمِنَ الثُّلُثِ وَإِنْ لَمْ يَكُنْ حَجَّ فَهُوَ مِنْ جَمِيعِ الْمَالِ أَوْصَى أَوْ لَمْ يُوصِ وَهُوَ عَلَيْهِ دَيْنٌ