Moses swore on that day, saying, ‘Surely the land on which your foot has walked will be an inheritance to you and to your children forever, because you have fully
followed after Yahweh my God.’

“forever.” The Hebrew can also refer to a long period of time, not necessarily “forever.”