From Sahih Bukhari (Hadith 4236):
Narrated `Umar:But for the other Muslims (i.e. coming generations) I would divide (the land of) whatever villages the Muslims might conquer (among the fighters), as the Prophet (ﷺ) divided (the land of) Khaibar
Reference: Bukhari 4236