Abu Hurayrah (may Allah be pleased with him) came to Umar (may Allah be pleased with him) from Bahrain. Abu Hurayrah (may Allah be pleased with him) said: I prayed the Isha prayer with him, and when he saw me, I greeted him with salam. He said: What have you brought? I said: I have brought five hundred thousand. Umar (may Allah be pleased with him) said: What are you saying? I said: I have brought five hundred thousand. Umar (may Allah be pleased with him) said: You are drowsy; go home and sleep, and come in the morning. Abu Hurayrah (may Allah be pleased with him) said: I came in the morning. Umar (may Allah be pleased with him) asked: What have you brought? I said: Five hundred thousand. Umar (may Allah be pleased with him) said: Really? I said: Yes, that is all I know. Umar (may Allah be pleased with him) said to the people: Abu Hurayrah (may Allah be pleased with him) has brought me wealth; if you wish, we will count it out to you, and if you wish, we will measure it out to you. A man said: O Commander of the Believers, I have seen these non-Arabs keep a register (diwan), on the basis of which they give to people. So Umar (may Allah be pleased with him) set up the register, and allotted five thousand for the Muhajirun, four thousand for the Ansar, and twelve thousand for the wives of the Prophet (peace and blessings be upon him) (may Allah be pleased with them).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12996