Book of Deuteronomy have given various answers to the problem. The Deuteronomistic history theory is currently the most popular (Deuteronomy was originally just the law code and covenant, written to cement the religious reforms of Josiah, and later expanded to stand as the introduction to the full history); but there is an older theory which sees Deuteronomy as belonging to Numbers, and Joshua as a sort of supplement to it. This idea still has supporters, but the mainstream understanding is that Deuteronomy, after becoming the introduction to the history, was later detached from it and included with Genesis-Exodus-Leviticus-Numbers because it already had Moses
Old Testament messianic prophecies quoted in the New Testament to which Old Testament passages are messianic prophecies and which are not, and whether the prophecies they claim to have been fulfilled are intended to be prophecies. The authors of these Old Testament "prophecies" often appear to be describing events that had already occurred. For example, the New Testament verse states, ""So he got up, took the child and his mother during the night and left for Egypt, 15 where he stayed until the death of Herod. And so was fulfilled what the Lord had said through the prophet: 'Out of Egypt I called my son.'"" This is referring to