"Had our good Bible been written by uninspired persons, it would have presented quite a different appearance and would have been a discouraging study to erring mortals, who are contending with natural frailties and the temptations of a wily foe. But as it is, we have a correct record of the religious experiences of marked characters in Bible history. Men whom God favored, and to whom He entrusted great responsibilities, were sometimes overcome by temptation and committed sins, even as we of the present day strive, waver, and frequently fall into error. But it is encouraging to our desponding hearts to know that through God's grace they could gain fresh vigor to again rise above their evil natures; and, remembering this, we are ready to renew the conflict ourselves. 4T 10.2"
"For whatsoever things were written aforetime were written for our learning, that we through patience and comfort of the scriptures might have hope."
Both passages discuss the value of past writings (Scripture and Bible history) for learning and encouragement, particularly in the face of human failings. The EGW passage amplifies the idea of learning from the experiences of biblical figures, echoing the principle in Romans 15:4.