Reflective Question

How did the Israelites seek to become righteous? How does the gospel differ from that? How can we be saved?