Avicii looked happy and healthy in a photo reportedly taken only one day before he died.
TMZ obtained a shot of the DJ and producer, whose real name was Ted Bergling, chilling on a yacht with two friends.
The photo was reportedly taken Thursday off the shore of Muscat in Oman, where Avicii was vacationing. He was found dead Friday morning.
Although no official cause of death has been revealed, police said foul play is not suspected.
In the pic, he is flashing the peace sign with one hand and holding a drink in the other.
MORE: Avicii Dead At 28
It’s not known if the drink contained alcohol but Avicii said in 2013 that he quit booze after suffering pancreatitis.
"I was drinking way too much, partying in general way too much," he told Time. "Then I got a pancreatitis attack [at 21], which is very rare. So that forced me to do a 180 and stop drinking.
"I can still party. I just—I can be sober and party. It’s all a learning experience. I’ve gone out partying sober and I’ve met my new girlfriend from day one sober, and I’ve done everything sober. And I see how drunk everyone else is and I feel like, I kind of like not being hungover tomorrow."
In a tribute on Instagram, Diplo referred to Avicii's "demons." He wrote: "Maybe this wasn't the right place for you sometimes."