Sahih al-Bukhari 2772
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنْ شِئْتَ حَبَّسْتَ أَصْلَهَا، وَتَصَدَّقْتَ بِهَا "
Narrated Ibn `Umar:
When `Umar got a piece of land in Khaibar, he came to the Prophet (ﷺ) saying, "I have got a piece of land, better than which I have never got. So what do you advise me regarding it?" The Prophet (ﷺ) said, "If you wish you can keep it as an endowment to be used for charitable purposes." So, `Umar gave the land in charity (i.e. as an endowments on the condition that the land would neither be sold nor given as a present, nor bequeathed, (and its yield) would be used for the poor, the kinsmen, the emancipation of slaves, Jihad, and for guests and travelers; and its administrator could eat in a reasonable just manner, and he also could feed his friends without intending to be wealthy by its means."
Full reference and source
Sahih al-Bukhari 2772 In-book : Book 55, Hadith 35 USC-MSA web (English) : Vol. 4, Book 51, Hadith 33 (deprecated)
View source on Sunnah.com (opens in a new tab)