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)." (IT)
English reference (IT): Vol. 3, Book 15, Hadith 2397 (IT)
Arabic reference (IT): Book 15, Hadith 2487 (IT)