Numbers 14:33

33 Your children will be shepherds here for forty years, suffering for your unfaithfulness, until the last of your bodies lies in the wilderness.

Read Numbers 14:33 Using Other Translations

And your children shall wander in the wilderness forty years, and bear your whoredoms, until your carcases be wasted in the wilderness.
And your children shall be shepherds in the wilderness forty years and shall suffer for your faithlessness, until the last of your dead bodies lies in the wilderness.
And your children will be like shepherds, wandering in the wilderness for forty years. In this way, they will pay for your faithlessness, until the last of you lies dead in the wilderness.