You may or may not know this, but the stories in the Bible aren’t written in perfect chronological order.
The primary reason is that many of the books overlap in the time periods they cover. Other books, like Psalms and Proverbs are collections of songs, poems, and wise sayings that were written by various people who lived in different generations. Still other books, notably the writings of the prophets (Isaiah, Hosea, Jeremiah and Ezekiel to name a few) were written during a very specific time period that is covered by as little as a chapter of one of the longer, historical books, like the books of Samuel, Kings, and Chronicles. It is very helpful – and enjoyable – to read the psalms, proverbs, and prophecies alongside the historical narrative that coincides with when they are written.