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.
tirmidhi:1257Abū Kurayb > Abū Bakr b. ʿAyyāsh > Abū Ḥuṣayn > Ḥabīb b. Abū Thābit > Ḥakīm b. Ḥizām

From Hakim bin Hizam, that the Messenger of Allah ﷺ sent Hakim bin Hizam with a Dinar to buy an animal for Udhiyyah (an animal for sacrifice) for him. He purchases an Udhiyyah which he sold and profited a Dinar from, so he purchased another in its place. And he returned to the Messenger of Allah ﷺ with Udhiyyah and the Dinar, so he said: 'The sheep is for sacrifice and Dinar is for charity.'"  

[Abu 'Eisa said:] We do not know of the Hadith of Hakim bin Hizam except through this route, and Habib bin Abi Thabit did not hear from Hakim bin Hizam - in my view.
الترمذي:١٢٥٧حَدَّثَنَا أَبُو كُرَيْبٍ حَدَّثَنَا أَبُو بَكْرِ بْنُ عَيَّاشٍ عَنْ أَبِي حُصَيْنٍ عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ عَنْ حَكِيمِ بْنِ حِزَامٍ

أَنَّ رَسُولَ اللَّهِ ﷺ بَعَثَ حَكِيمَ بْنَ حِزَامٍ يَشْتَرِي لَهُ أُضْحِيَّةً بِدِينَارٍ فَاشْتَرَى أُضْحِيَّةً فَأُرْبِحَ فِيهَا دِينَارًا فَاشْتَرَى أُخْرَى مَكَانَهَا فَجَاءَ بِالأُضْحِيَّةِ وَالدِّينَارِ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ ضَحِّ بِالشَّاةِ وَتَصَدَّقْ بِالدِّينَارِ  

قَالَ أَبُو عِيسَى حَدِيثُ حَكِيمِ بْنِ حِزَامٍ لاَ نَعْرِفُهُ إِلاَّ مِنْ هَذَا الْوَجْهِ وَحَبِيبُ بْنُ أَبِي ثَابِتٍ لَمْ يَسْمَعْ عِنْدِي مِنْ حَكِيمِ بْنِ حِزَامٍ