Umar, do not get back what you gave as charity.

Sahih Muslim Book 24 Hadith 7

Sahih Muslim #1621 c

The Book of Gifts 24:7

Salim reported from Ibn Umar (Allah be pleased with them) that 'Umar donated a horse in the path of Allah and then found it being sold, and he decided to buy that. He asked Allah's Apostle (ﷺ) about it, whereupon Allah's Messenger (ﷺ) said:

Umar, do not get back what you gave as charity.

Chapter: It Is Disliked For A Man To Buy What He Gave In Charity From The One To Whom He Gave It

Grade: Sahih