Juice Wrld vowed to stop taking the prescription painkiller codeine six-months before passing away.
The musician, who celebrated his 21st birthday six days before his death on Sunday, publicly shared his promise to kick the drug - that is an opiate used to treat mild to moderate pain - on Twitter in July this year.
The rapper, real name Jarad Anthony Higgins, made the vow on the social media site to 'f**k codeine i'm done' after admitting he had made the decision after scaring his girlfriend Ally Lotti.
He wrote to his followers: "Ima leave that s--t alone 4 good watch me.. I'm done w it."
Ally then retweeted the message as she pleaded 'pls' to the Graduation hitmaker before Juice Wrld tweeted again: "I got work to do, a lot."
The American star then explained: "Bae I’m sorry I be tweaking, you’ve put up with more than ppl know I know I be scaring you, f**k Codeine I’m done. I love you and im letting it be known publicly that ain’t s**t f*****g up the real love I found. Learn from this everyone. Addiction kills all but you can overcome."
In 2018, the Chicago native revealed that he was living in Los Angeles with Ally Lotti - who he named Alexia in the interview with the New York Times.
During the chat he shared on his friends struggling to understand why he was in a committed relationship.
He said: “All my homies be like: ‘What you doing with a girlfriend? You got all this stuff going on. I love her, though. I can admit and say that I have feelings.”
The musician went on to describe that it was difficult to balance his relationship with his busy work schedule.
Juice Wrld died in hospital after falling ill at Chicago's Midway airport. He'd just jetted in on a flight from California, according to TMZ.com .
Juice Wrld reportedly became sick at the airport and was rushed to hospital, where he later passed away.
He is said to have been still conscious when he was transported to the medical centre, but died a short time later.
No cause of death has been given.
The tragedy comes a week after his 21st birthday last Monday and just as his career was starting to take off.
Juice Wrld was about to hit the big time after signing a big money deal with Interscope Records, believed to have been worth several million dollars.
His most famous collaboration was with Travis Scott singing on his track No Bystanders on his AstroWorld album.
The stage name Juice Wrld is believed to have been inspired by rap legend Tupac Shakur and his performance in 1992 film Juice.
Do you have a story to sell? Get in touch with us at [email protected] or call us direct 0207 29 33033