Maan bin Yazid bin Akhnas reported,

He related that he, his father, and his grandfather all gave the pledge of allegiance to the Messenger of Allah ﷺ. The Prophet ﷺ arranged a marriage proposal on his behalf and married him off, and he also brought a dispute before him.His father Yazid had set aside some gold dinars to give in charity, leaving them with a man in the mosque. He came, took them, and brought them to his father.His father said, "By Allah, I did not intend them for you."So he took the matter to the Messenger of Allah ﷺ, who said, "You receive the reward of what you intended, Yazid, and you may keep what you took, Maan."

Bukhari 1422

Sahih

حدثنا محمد بن يوسف حدثنا إسرائيل حدثنا أبو الجويرية أن

معن بن يزيد رضي الله عنه

حدثه قال بايعت رسول الله ﷺ أنا وأبي وجدي وخطب علي فأنكحني وخاصمت إليه وكان أبي يزيد أخرج دنانير يتصدق بها فوضعها عند رجل في المسجد فجئت فأخذتها فأتيته بها فقال والله ما إياك أردت فخاصمته إلى رسول الله ﷺ فقال لك ما نويت يا يزيد ولك ما أخذت يا معن

البخاري 1422صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Zakat
Chapter
If one gives charity to his son without knowing
Numbering
Darussalam 1422
Bukhari 1422