Deuteronomy 1:3-5

3 But it was 40 years from the time the Israelites left Egypt until the time they came to this place. On the first day of the eleventh month of the 40th year, Moses spoke to the people and told them everything the LORD commanded.

4 This was after he defeated Sihon and Og. (Sihon was the king of the Amorites and lived in Heshbon. Og was the king of Bashan and lived in Ashtaroth and Edrei.)

5 The Israelites were in Moab on the east side of the Jordan River when Moses began to explain what God had commanded: