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.
suyuti:4-2199bʿAli
Request/Fix translation

  

السيوطي:٤-٢١٩٩b

"عَنْ عَلِىٍّ: أَنَّهُ وَجَدَ دِينَارًا عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَذَكَرَهُ لِلنَّبِىِّ ﷺ فَأَمَرَهُ أَنْ يُعَرِّفْهُ، فَلَمْ يُعْرَفْ، فَأَمرَهُ أَنْ يأكُله، ثُمَّ جَاءَ صَاحِبُهُ فَأَمَرَهُ أَنْ يُقَوِّمَهُ".  

الشافعى، [ق] البيهقى في السنن

See similar narrations below:

Collected by Bayhaqī
bayhaqi:12060Muḥammad b. Mūsá b. al-Faḍl > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > al-Darāwardī > Sharīk b. ʿAbdullāh b. Abū Namir > ʿAṭāʾ b. Yasār > ʿAlī b. Abū Ṭālib > And Jad

[Machine] He found a dinar during the time of the Messenger of Allah ﷺ and he mentioned it to the Prophet ﷺ who ordered him to announce it, but no one came forward to claim it. So he ordered him to keep it and then the owner came and he ordered him to pay a fine. Al-Shafi'i and Ali ibn Abi Talib may Allah have mercy on them, both said it is prohibited for him to receive charity because he is from the descendants of Banu Hashim.  

البيهقي:١٢٠٦٠أَخْبَرَنَا مُحَمَّدُ بْنُ مُوسَى بْنِ الْفَضْلِ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ أنبأ الشَّافِعِيُّ أَخْبَرَنِي الدَّرَاوَرْدِيُّ عَنْ شَرِيكِ بْنِ عَبْدِ اللهِ بْنِ أَبِي نَمِرٍ عَنْ عَطَاءِ بْنِ يَسَارٍ عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ ؓ

أَنَّهُ وَجَدَ دِينَارًا عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَذَكَرَهُ لِلنَّبِيِّ ﷺ فَأَمَرَهُ أَنْ يُعَرِّفَهُ فَلَمْ يُعْتَرَفْ فَأَمَرَهُ أَنْ يَأَكُلَهُ ثُمَّ جَاءَ صَاحِبُهُ فَأَمَرَهُ أَنْ يَغْرَمَهُ قَالَ الشَّافِعِيُّ رَحِمَهُ اللهُ وَعَلِيُّ بْنُ أَبِي طَالِبٍ ؓ مِمَّنْ تَحْرُمُ عَلَيْهِ الصَّدَقَةُ؛ لِأَنَّهُ مِنْ صَلِيبَةِ بَنِي هَاشِمٍ