It was narrated that Ibn 'Umar said:
"Umar bin Khattab said: 'O Messenger of Allah (ﷺ), the one hundred shares of the Khaibar I have never been given any wealth that is more beloved to me than them, and I wanted to give them in charity.' The Prophet (ﷺ) said: 'Make it an endowment and give its produce in the cause of Allah (SWT)."
English reference: Vol. 3, Book 15, Hadith 2397
Arabic reference: Book 15, Hadith 2487