News that “Sopranos” actor James Gandolfini died suddenly Wednesday night rocked Hollywood and shocked fans of the star. While the 51-year-old’s actor's death was unexpected, viewers of the beloved HBO series were warned of his possible premature demise years ago.

One day after the actor’s death, a scene showing Gandolfini’s character, mob boss Tony Soprano, surfaced giving an accurate prediction, reported RadarOnline. The character of Tony Soprano is told the eerie news after confronting his on-screen nephew about his drug use.

“We are here to talk about you killing yourself with drugs,” says Tony. Christopher Moltisanti, played by Michael Imperioli, responds, “I’m going to kill myself? The way you f---kin’ eat, you’re gonna have a heart attack by the time you’re 50!”

Similar to the show’s prediction, Gandolfini passed away at 51 years of age due to a suspected heart attack at the  Taormina Film Festival in Sicily, Italy. The actor was vacationing with his 13-year-old son Michael in Rome on a “boy’s trip” before his death. The teen reportedly found his father suffering from a heart attack in their hotel bathroom Wednesday night after hearing calls of distress.

HBO, which confirmed the actor was overseas to appear at the film festival, released a statement: “He was a special man, a great talent, but more important, a gentle and loving person who treated everyone no matter their title or position with equal respect.” 

Gandolfini is survived by his teenage son with former wife, Marcella Wudarski, his 8-month-old daughter Liliana Ruth and his current wife, Deborah Lin.