This conclusion cannot be drawn from reading the Old Testament alone. All that is clear from reading Genesis is that Joseph knew the Lord would deliver the Israelites from Egypt, God will surely visit you, and bring you out of this land unto the land which he sware to Abraham, to Isaac, and to Jacob (Gen 50:24). Lehi was apparently reading from a version of the Old Testament in which the plain and precious prophecies of Joseph had not been removed. Joseph Smith restored these prophecies in the Joseph Smith Translation for Gen 50:24-48. In fact, Lehi's discussion of what Joseph saw as contained in 2 Nephi 3:5-18 is very similar to the JST for Gen 50. Lehi was basically repeating the prophecies which had been previously recorded.
A conclusion which can be drawn from our version of the Old Testament is that Joseph's father, Jacob had seen Lehi's day. This is evident in the patriarchal blessings which Jacob gave to his 12 sons. When speaking to Joseph he said, Joseph is a fruitful bough, even a fruitful bough by a well whose branches run over the wall (Gen 49:22). Lehi's family was this branch which ran over the wall. LeGrand Richards taught that "the wall," or great barrier in those ancient days was the ocean which separated the continental masses. Elder Richards also makes it clear that the phrase, "utmost boundaries of the everlasting hills" spoken of in Gen 49:26 has reference to the Rocky Mountains of North and South America (see A Marvelous Work and a Wonder, p. 64).