There is no chronological order in the Torah

There is no chronological order in the Torah (Hebrew: אין מוקדם ומאוחר בתורה, literally "There is no early and late in the Torah") is an expression used by many Bible commentators when they encounter events which are out of chronological order. In rabbinic analysis, the issue of chronological order is related to the issue of semichut parshiyot (whether one can learn from one section of the Biblical text about another section which is adjacent to it).

Examples
The commandments in Leviticus 25 are stated as being given to Moses "on Mount Sinai", seemingly earlier in time than the ritual commandments of Leviticus chapters 1–24. Ibn Ezra explains that Leviticus 25 was indeed given before the ritual commandments, but was recorded later due to its thematic connection to the passages around it (Leviticus 18 and 26). In contrast, Nachmanides asserts that the passage is in chronological order, as only at this point did Moses relay to the people the commands he had previously been given on Mount Sinai.