The author uses questions to teach his readers. These two questions can be joined as one statement, if needed. Alternate translation: "For forty years, God was angry with those who sinned, and he let them die in the wilderness." (See: [[rc://en/ta/man/translate/figs-rquestion]])