take solace in (something)
To be comforted or consoled by something. I know it's hard to see him this way, but you can take solace in the knowledge that your grandfather is not in any pain. I took solace in the fact that I would be leaving the job in just a few short months.
take solace (in something)
to console oneself with some fact. I am inordinately impoverished, but I take solace in the fact that I have a splendiferous vocabulary.