While police continue to investigate Prince’s cause of death, new findings show that late singer reportedly received a prescription shortly before he passed away.

According to a search warrant, a physician prescribed medication to the “Purple Rain” singer on April 7, reported Ace Showbiz.

The music icon also underwent tests on April 20, a day before he was found unconscious at his Paisley Park home.

It is still unknown what Prince was being treated for, but according to reports the late pop star’s people said he was treated for an illness in 2014 and 2015 at Ridgeview Hospital in Chaska, Minnesota.