Psalm 78:55

55 He drove out the nations before them; he gave them their inheritance by lot. He settled the tribes of Israel into their homes.