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 end (the comfortable termination) of their trouble though it last long, it shall not last always. The time to favour Zion, yea, the set time, will come. When things are at the worst they will begin to mend and He will give them to see the glorious perfection of their deliverance for, as for God, His work is perfect. He that in the beginning finished the heavens and the earth, and all the hosts of both, will finish all the blessings of both to His people. When He begins in ways of mercy He will make an end. God does nothing by halves.
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.
from Matthew Henry Bible Commentary