Thank you for asking a question on thisisyourbible.com
The sin of the people of Jericho was the same as all the inhabitants of Canaan – they worshipped idols, were immoral and did evil in the sight of God. Canaan was defiled by its inhabitants.
Exodus 23:23 For mine Angel shall go before thee, and bring thee in unto the Amorites, and the Hittites, and the Perizzites, and the Canaanites, the Hivites, and the Jebusites: and I will cut them off. 24 Thou shalt not bow down to their gods, nor serve them, nor do after their works: but thou shalt utterly overthrow them, and quite break down their images... 32 Thou shalt make no covenant with them, nor with their gods. 33 They shall not dwell in thy land, lest they make thee sin against me: for if thou serve their gods, it will surely be a snare unto thee.
Some of the evils that they did are listed in Leviticus 18
Leviticus 18:3... after the doings of the land of Canaan, whither I bring you, shall ye not do: neither shall ye walk in their ordinances.
Read verses 6 to 26
Leviticus 18:27 (For all these abominations have the men of the land done, which were before you, and the land is defiled;) 28 That the land spue not you out also, when ye defile it, as it spued out the nations that were before you.
Moses repeats the warning to the generation about to go over Jordan into the promised.
Deuteronomy 12:30 Take heed to thyself that thou be not snared by following them, after that they be destroyed from before thee; and that thou enquire not after their gods, saying, How did these nations serve their gods? even so will I do likewise. 31 Thou shalt not do so unto the LORD thy God: for every abomination to the LORD, which he hateth, have they done unto their gods; for even their sons and their daughters they have burnt in the fire to their gods.
God brings punishment upon nations for the evil that they do.
Because Israel did not obey God but turned to idolatry and did the same abominations in the sight of God as the Canaanites, the nation was dispersed from the land. This is described in Psalm 106
Psalms 106:34 They did not destroy the nations, concerning whom the LORD commanded them: 35 But were mingled among the heathen, and learned their works. 36 And they served their idols: which were a snare unto them. 37 Yea, they sacrificed their sons and their daughters unto devils, 38 And shed innocent blood, even the blood of their sons and of their daughters, whom they sacrificed unto the idols of Canaan: and the land was polluted with blood. 39 Thus were they defiled with their own works, and went a whoring with their own inventions. 40 Therefore was the wrath of the LORD kindled against his people, insomuch that he abhorred his own inheritance. 41 And he gave them into the hand of the heathen; and they that hated them ruled over them. 42 Their enemies also oppressed them, and they were brought into subjection under their hand. 43 Many times did he deliver them; but they provoked him with their counsel, and were brought low for their iniquity. 44 Nevertheless he regarded their affliction, when he heard their cry: 45 And he remembered for them his covenant, and repented according to the multitude of his mercies. 46 He made them also to be pitied of all those that carried them captives. 47 Save us, O LORD our God, and gather us from among the heathen, to give thanks unto thy holy name, and to triumph in thy praise. 48 Blessed be the LORD God of Israel from everlasting to everlasting: and let all the people say, Amen. Praise ye the LORD.
The final restoration of Israel to the land will happen when Christ returns to deliver the nation.
Zechariah 12:10 And I will pour upon the house of David, and upon the inhabitants of Jerusalem, the spirit of grace and of supplications: and they shall look upon me whom they have pierced, and they shall mourn for him, as one mourneth for his only son, and shall be in bitterness for him, as one that is in bitterness for his firstborn.
Christ is their promised king and he will reign over the earth from Jerusalem.
Luke 1:32 He shall be great, and shall be called the Son of the Highest: and the Lord God shall give unto him the throne of his father David: 33 And he shall reign over the house of Jacob for ever; and of his kingdom there shall be no end.
At that time there will be no more abominations committed in the land – figuratively described as ‘no more the Canaanite’.
Zechariah 14:21 Yea, every pot in Jerusalem and in Judah shall be holiness unto the LORD of hosts: and all they that sacrifice shall come and take of them, and seethe therein: and in that day there shall be no more the Canaanite in the house of the LORD of hosts.
That the punishment was national and not individual is shown in the saving of Rahab and her house.
Hebrews 11:31 By faith the harlot Rahab perished not with them that believed not, when she had received the spies with peace.
James 2:25 Likewise also was not Rahab the harlot justified by works, when she had received the messengers, and had sent them out another way?
A Canaanite was one of the twelve apostles.
Matthew 10:4 Simon the Canaanite...
I hope you have found this helpful.
May God bless you,