God's commandment to live in the Land of Israel was not meant exclusively for Abraham. Rather, it was given to Jews to observe throughout the generations.
While imprisoned underground, Avinatan's captors repeatedly spoke about Joseph, referring to him as 'the righteous one,' faithful and unwavering despite suffering.