Lil Keed complained to his friends and family he was suffering from serious stomach pain in the days leading up to his death ... with things getting so bad he had to go to the hospital.
Multiple sources close to Keed tell us ... the YSL label rapper had his battles over the years with alcohol and drugs, but had been clean and sober of late. We're told last week he began experiencing severe stomach pain and went to an L.A. hospital to get checked out.
From there, our sources say things got worse, and Keed's organs -- his liver and kidneys -- started failing ... leading to his death.
As we reported, news of his death shocked the hip hop world over the weekend when his brother, Lil Gotit, posted, "Can't believe I seened u die today bro I did all my cries I know what u want me to do and that's go hard for Mama Daddy Our Brothers Naychur and Whiteboy."