After the death of Joshua the Israelites inquired to God whether they were to go up against the Canaanites in war. They were given the answer: "If ye are pure of heart, go forth unto the combat; but if your hearts are sullied with sin, then refrain." They inquired furthermore how to test the heart of the people. God ordered them to cast lots and set apart those designated by lot, for they would be the sinful among them. Again, when the people besought God to give it a guide and leader, an angel answered: "Cast lots in the tribe of Caleb." The lot designated Kenaz, and he was made prince over Israel.