Sayyiduna Anas bin Malik (may Allah be pleased with him) said: When the verse "You will never attain righteousness until you spend from what you love" [Surah Al Imran: 92] was revealed, and "Who is it that will lend Allah a goodly loan" [Surah al-Baqarah: 245], Abu Talhah (may Allah be pleased with him) said: "O Messenger of Allah (peace and blessings be upon him)! My such-and-such garden is dedicated to Allah, and if I were able, I would have kept it hidden and not announced it." He (peace and blessings be upon him) said: "Distribute it among your poor." So he distributed it between Hassan and Ubayy bin Ka'b (may Allah be pleased with them both).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوصايا / 12647