Numbers 14:24
23 they will by no means see the land that I promised on oath to their fathers, nor will any of them who despised me see it— 24 Only my servant Caleb, because he had a different spirit and has followed me fully—I will bring him into the land where he had gone, and his descendants will possess it. 25 (Now the Amalekites and the Canaanites were living in the valleys.) Tomorrow, turn and journey into the wilderness by the way of the Red Sea.”
Numbers 32:12
11 ‘Because they have not followed me wholeheartedly, not one of the men twenty years old and upward who came from Egypt will see the land that I swore to give to Abraham, Isaac, and Jacob, 12 except Caleb son of Jephunneh the Kenizzite, and Joshua son of Nun, for they followed the Lord wholeheartedly.’ 13 So the Lord’s anger was kindled against the Israelites, and he made them wander in the wilderness for 40 years, until all that generation that had done wickedly before the Lord was finished.
Joshua 14:14
12 Now, assign me this hill country that the Lord promised me at that time! No doubt you heard then that the Anakites live there in large, fortified cities. But assuming the Lord is with me, I will conquer them, as the Lord promised.” 13 Joshua asked God to empower Caleb son of Jephunneh and assigned him Hebron. 14 So Hebron remains the assigned land of Caleb son of Jephunneh the Kenizzite to this very day because he remained loyal to the Lord God of Israel. 15 (Hebron used to be called Kiriath Arba. Arba was a famous Anakite.) Then the land was free of war.
Notes and References
"... Numbers 32:12 ... This same report occurs in Numbers 14:24 (J) and in Joshua 14:14, but there only Caleb “went after YHWH completely.” Joshua is not mentioned. It appears that Joshua was added here by the Redactor because he was merging both J and P texts, and in P Joshua had been added alongside Caleb in the scout's story ..."
Friedman, Richard Elliott The Bible with Sources Revealed: A New View Into the Five Books of Moses (p. 301) Harper San Francisco, 2005