see the light at the end of the tunnel
To conceptualize or foresee an end to something difficult or unpleasant; to be relatively near to the end or conclusion of some problem or difficulty. I've been working on this book for over a year, but I can finally see the light at the end of the tunnel. Now that the doctors have been able to diagnose what's wrong with me, we might finally be able to see the light at the end of the tunnel.