Confidence is not a feeling nor is it an assurance based upon circumstances. Neither confidence nor the lack of confidence is determined by circumstances.
Confidence is based upon knowing .
The Bible alone does not give us confidence. Knowing the Bible produces confidence in our lives. Jesus did not tell us that the truth would make us free, He said knowing the truth would make us free. Notice, contentment is not based on the state we are in, but on what we have learned. Our knowledge of the faithfulness of God and His promises will carry us through the adversities of life.