The seventh time around, when the priests sounded the trumpet blast, Joshua commanded the people, "Shout! For the Lord has given you the city! (Joshua 6:16)
Jericho was tightly shut up because of the Israelites. God spoke to Joshua and said, "See, I have delivered Jericho into your hands, along with its king and its fighting men. March around the city once with all the armed men. Do this for six days. Have seven priests carry trumpets of rams' horns in front of the ark. On the seventh day, march around the city seven times, with the priests blowing the trumpets. When you hear them sound a long blast on the trumpets, have all the people give a loud shout; then the wall of the city will collapse and the people will go up, every man straight in."
The people of God, the Israelites were promised by God that he would be leading them to the promised land and Jericho was a hindrance on the way. But God had a plan in place for overcoming the obstacle and Joshua and the Israelites were to go according to that.
They did as God told them and there was deliverance.
It's the same for you and me. God has a plan in place for each of us at several points on our journey to our eternal home "heaven" and we need to obey it to see hindrances overcome. He has called us to be "over-comers" and we can achieve that only by following his plan and leading.