Kim Richards' ex-husband, Monty Brinson, recently paid her a visit in rehab.

Kyle Richards Opens Up About 'RHOBH' Season Six Casting Rumors

After being given just days to live, Brinson, who is suffering from cancer, traveled to Malibu, Calif. for a visit with his Real Housewives of Beverly Hills ex-wife, the mother of his daughter Brooke.

“A beautiful day with @kimrichards11 on this summer day. I’m so proud of you for all your strength and determination," Brison captioned the photo on Tuesday. "Everyone in your family is so proud of yourself, you’re proving everyone wrong and when everyone sees you they will see the beauty inside and out that you poses. You’re a fighter and you stay on this path and live a healthy clean life and find the happiness you deserve. Love you.”

Lisa Vanderpump Discusses Kim Richards, Has She Spoken To Her Since Rehab?

A photo posted by Monty Brinson (@montybrinson) on Jun 30, 2015 at 2:58pm PDT

Richards entered rehab weeks ago after suffering an alcohol relapse earlier this year.

Just one week ago, Brinson shared devastating news on his Instagram page, revealing he may not be around much longer.

"[Three] weeks ago they told me I had a few days to a few weeks left. At first that was a mind f**k. But people that know me I take a negative and make it positive," he wrote. "Honestly I feel great and wouldn't no the difference. The reason for this post is just in case, I wanted to thank everyone my friends, strangers I've never met for all the prayers and kindness you've shown me."

Richards is not expected to return to The Real Housewives of Beverly Hills for the show's upcoming sixth season.