Sahih al-Bukhari 1489
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لاَ تَعُدْ فِي صَدَقَتِكَ "
Narrated `Abdullah bin `Umar:
`Umar bin Al-Khattab gave a horse in charity in Allah's Cause and later he saw it being sold in the market and intended to purchase it. Then he went to the Prophet (ﷺ) and asked his permission. The Prophet said, "Do not take back what you have given in charity." For this reason, Ibn `Umar never purchased the things which he had given in charity, and in case he had purchased something (unknowingly) he would give it in charity again.
Full reference and source
Sahih al-Bukhari 1489 In-book : Book 24, Hadith 90 USC-MSA web (English) : Vol. 2, Book 24, Hadith 566 (deprecated)
View source on Sunnah.com (opens in a new tab)