Exodus 16:35

35The people of Israel aate the manna forty years, till they came to a habitable land. They ate the manna till bthey came to the border of the land of Canaan.

Numbers 33:38

38And Aaron the priest went up cMount Hor at the command of the Lord and died there, in the fortieth year after the people of Israel had come out of the land of Egypt, on the first day of the fifth month.
Copyright information for ESV