Martin Luther said this quote

Everything bad in the Old Testament (and there's a lot) is there to point out our sin, while everything good in the Old Testament is there to point us to our Savior.