كتاب المقدمات
The Book of Miscellany
(1)
Chapter: Sincerity and Significance of Intentions and all Actions, Apparent and Hidden
(1)
- باب الإخلاص وإحضارالنية
Riyad as-Salihin 5
Ma'n bin Yazid bin Akhnas (May Allah be pleased with them) (he, his father and his grandfather, all were Companions) reported:
My father set aside some dinars for charity and gave them to a man in the mosque. I went to that man and took back those dinars. He said: "I had not intended you to be given." So we went to Messenger of Allah (ﷺ), and put forth the matter before him. He said to my father, "Yazid, you have been rewarded for what you intended." And he said to me, "Ma'n, you are entitled to what you have taken."

[Al- Bukhari].

وعن أبي يزيد معن بن يزيد بن الأخنس رضي الله عنهم، وهو وأبوه وجده صحابيون، قال‏:‏ كان أبي يزيد أخرج دنانير يتصدق بها فوضعها عند رجل في المسجد فجئت فأخذتها فأتيته بها، فقال‏:‏ والله ما إياك أردت، فخاصمته إلى رسول الله صلى الله عليه وسلم فقال‏:‏ ‏ "‏ لك ما نويت يا يزيد، ولك ما أخذت يامعن‏"‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 5
In-book reference : Introduction, Hadith 5