Sayyiduna Sahl bin Abi Hathmah (may Allah be pleased with him) says: "The Messenger of Allah (peace and blessings be upon him) divided Khaybar into two halves: one half for his own needs and his close ones, and one half among the Muslims. Then he divided it among them into eighteen shares."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 5613