give up hope
To stop believing that something will happen. After living with this disease for so long, I've given up hope of ever getting better. Just when I gave up hope of seeing John tonight, he knocked at the door with a bouquet of flowers.
give up (all) hope
to stop hoping for something. (Fixed order.) Don't give up hope. There's always a chance. We had given up all hope when a miracle happened.