It is narrated from Sayyiduna Anas (may Allah be pleased with him) that when this verse: "You will never attain righteousness until you spend" [Surah Al Imran: 92] was revealed, Abu Talhah (may Allah be pleased with him) said: I think our Lord is asking us for (some of) our wealth. I bear witness, O Messenger of Allah, that I have dedicated my land to Allah. The Messenger of Allah (peace and blessings be upon him) said: "Distribute it among your relatives." So Abu Talhah (may Allah be pleased with him) distributed it between Hassan bin Thabit and Ubayy bin Ka'b (may Allah be pleased with them both).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوقف / 11922