Lil Xan reportedly left a psychiatric ward after medical professionals determined he wasn’t a danger to himself or others.

According to TMZ, Lil Xan spent three days in the psych ward before being released. He moved to a rehab center in an effort to continue treatment for his mental health.

Lil Xan checked into a hospital due to exhaustion, dehydration and depression. Last week, he informed his Instagram followers that he was hospitalized on a “5150.”

5150 is the number of a section of the Welfare and Institutions Code addressing people who may be a danger to themselves or others. It allows a person dealing with mental health issues to be involuntarily detained for 72 hours.

“DIDN’T WANT TO EVEN LET PEOPLE KNOW HOW BAD IT WAS AFFECTING MY MENTAL HEALTH BUT I FEEL I SHOULD, BEEN IN THE HOSPITAL ON A 51/50,” Lil Xan wrote on Instagram Stories. “PLEASE STOP SPEAKING ABOUT ME IF YOU DONT KNOW ME IM A HUMAN BEING JUST LIKE YOU.”

Lil Xan has been open about his struggles with drugs, detailing his addiction in an appearance on 60 Minutes. He also accused his former manager Stat Quo of enabling his addiction.

Listen to what the rapper had to say about Stat Quo below.