Musa told his people to enter the holy land. They refused out of fear, and were made to wander for forty years.
Qur'an: Musa said: 'O my people, enter the holy land which Allah has assigned to you' (5:21). They said: 'In it is a people of great strength, and we will never enter it until they leave' (5:22).
Qur'an: 'Go, you and your Lord, and fight. Indeed, we are remaining right here' (5:24). Allah said: 'It is forbidden to them for forty years; they will wander throughout the land' (5:26).
Bible: The Bible tells of twelve spies sent into Canaan and the forty years in the wilderness. (Ref: Numbers 13–14)