whereas King David probably lived around 1000 BC, it is commonly accepted that the book of Deuteronomy was composed in the court of King Josiah of Judah, sometime around 620 BC, as part of a propaganda campaign aimed at strengthening Josiah’s authority. Leviticus was compiled at an even later date, no earlier than 500 BC.

