The definition of take heart is:
(idiom) become confident or courageous during a difficult situation
I’m sorry to hear that your father died. I hope that you take heart in the fact that he was a very nice and good man.
Cancer patients should take heart that one day there will be a cure for cancer.
From the News: