"For I know the thoughts that I think toward you, saith the Lord, thoughts of peace, and not of evil, to give you an expected end."
From Matthew Henry's commentary: "Known unto God are all his works, for known unto him are all his thoughts (Acts 15:18) and his works agree exactly with his thoughts; he does all according to the counsel of his will. We often do not know our own thoughts, nor know our own mind, but God is never at any uncertainty within himself. We are sometimes ready to fear that God’s designs concerning us are all against us; but he knows the contrary concerning his own people, that they are thoughts of good and not of evil; even that which seems evil is designed for good. His thoughts are all working towards the expected end, which he will give in due time. The end they expect will come, though perhaps not when they expect it. Let them have patience till the fruit is ripe, and then they shall have it. He will give them an end, and expectation, so it is in the original... He will give them to see the expectation, that end which they desire and hope for, and have been long waiting for. He will give them, not the expectations of their fears, nor the expectations of their fancies, but the expectations of their faith, the end which he has promised and which will turn for the best to them."
(To read the complete text, here's the link .)