Having hope means having an optimistic attitude for an outcome of a situation or event in one’s life.

We live in a world, where almost everything is based on hope. Beginning with a mother breastfeeding her newborn baby with hope, a patient going to the doctor with hope,
even a cancer patient has hope for cure. Basically every human matter is based on hope, with hope there is a tomorrow… in short, the nature of the human being is built on hope, if we lose hope, we deviate from the nature!
We always hope, and in all things it is better to hope than to despair
-Johann Wolfgang von Goethe

Allah (swt) says in the Qur’an:

Do not lose hope, nor be sad. [Qur’an 3:139]

By losing hope and being hopeless we directly act against the commands of Allah (swt).
So have hope in everything, and do not despair!!!