Although ancient historians almost always reported only the successes and virtues of rulers,
the Bible writers were honest, openly admitting even their own mistakes.
For instance, King David of Israel confessed: " I have sinned very much in what I have done. I have acted foolishly."
The statement is candidly documented in the Bible.
{2 Samuel 24:10}

And the Bible writer Moses himself recorded the incident in which he did not demonstrate reliance on the true God.
{Numbers 20:12}