Yahweh was angry with me because of you, and he swore that I would not cross the Jordan and would not enter the good land Yahweh your God is giving you as an inheritance.
In context
19And when you look up to the sky and see the sun, the moon, and the stars, the whole array of heaven, do not be led astray to bow down to them and serve them — things Yahweh your God has allotted to all the peoples everywhere under heaven. 20But you Yahweh has taken and brought out of the iron furnace, out of Egypt, to be his own people, his inheritance, as you are today. 21Yahweh was angry with me because of you, and he swore that I would not cross the Jordan and would not enter the good land Yahweh your God is giving you as an inheritance. 22I am going to die in this land; I will not cross the Jordan. But you are going to cross over and take possession of that good land. 23Be careful not to forget the covenant of Yahweh your God that he made with you, and not to make for yourselves a carved image in any shape that Yahweh your God has forbidden you.