When Amalek fought Israel, God promised to have war with the generations of Amalek forever. This represented the forces of the devil against the purposes of God. The devil doesn't want you to enter into the rest of God. When you listen to the lies of the enemy and let him cause your faith to waver, you will remain in the wilderness, just as Israel did.