Romans 15:4
For whatsoever things were written aforetime were written for our learning,—The Old Testament is full of examples showing that through self-denial and patient suffering for the
honor of God and the good of man, blessings and happiness came to the servants of God. They are recorded to teach us how God deals with men—how he applies his own laws. No man can have a clear knowledge of how God will apply his laws without studying the lessons he has given in the Old Testament. The examples of Abraham, Isaac, Jacob, Moses, David, and Solomon are given to teach us how God deals with men under his laws. All his dealings with men are instructive to us and helpful in learning our duty and how God will regard our actions under his laws. God’s dealings with the unfaithful are just as much for our good as his dealings with the righteous.
His condemnation of Cain is as instructive to us as his blessing upon Abel. That is given as a warning against serving God in a way not commanded by him; this, as encouragement to serve God as he directs. Man needs both warning against the evil and encouragement to the good. With both, it has been impossible to keep him long in the strait and narrow path. [The Old Testament is rich indeed in commands to persevere and be of good courage, and in examples of men who were made brave and patient by the power of God in them as they took him at his word.]
that through patience and through comfort of the scriptures we might have hope.—This assurance gives us hope that enables us with joy to bear present trials.