IBN Al-Qayyim (Allah have mercy on him) said while explaining the distinction between true hope and mere wishful thinking (tamanni):
“The difference between it and mere wishful thinking is that mere wishful thinking involves laziness wherein the person neither exerts himself, nor strives (to achieve what he wishes for).
Hope, however, entails striving, exertion and beautiful reliance. The first is like the one who wishes that the field would itself plant and sow its own seeds for him. The second is like the one who (actually) tills the soil, plants the seeds and then hopes that crops will grow.
This is why the the people of knowledge are agreed that hope is not correct except if accompanied by action.” – SG