How many years did the Israelites wander in the wilderness before entering the Promised Land?
Correct! We are told that the Israelites are punished for not believing in God when He told them to enter the promised land. As a result, He sends them to wander the wilderness for 40 years.
See more about this story in Numbers 13-14