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