A British lottery winner killed himself after murdering his two sons and stabbing his wife in the back — after being confronted about blowing his winnings on hookers, a court heard this week.

David Stokes, 43, flipped after estranged wife Sally, 47, confronted him about a secret phone she found hidden in the kitchen in Hinckley, according to Metro UK.

It showed notifications about booking an escort — along with internet searches about date rape drugs, the paper said.

After an initial confrontation, Sally left their sons at home with their dad — who attacked her when she returned home later, hitting her with a rolling pin and trying to suffocate her with a pillow, the outlet said.

“He looked evil. I thought at that moment I was going to die,” his wife told the inquest Monday of the deranged attack in November 2016, according to the Sun.

“He was saying it was all my fault. The fact is he was the one who was sleeping with prostitutes.”

He told her their sons, Matthew, 5, and Adam, 11, were “with someone” — when in fact they were both dead in bed, holding hands under a quilt, according to the reports.

Stokes — who had won more than $50,000 in the lottery — took his wife hostage, sparking a five-hour siege with police, the inquest was told.

It ended when he stabbed his wife in the back, with her managing to flee to the safety of waiting cops and paramedics, the Loughborough Coroner’s Court heard.

“The look on his face was like satisfaction as if he’d kind of won,” she told the inquest of him stabbing her, the Sun said. “I’ll never forget that.”

When police stormed the house, Stokes was found with a knife in his chest. He was pronounced dead at the scene, the hearing was told.

Police found the bodies of the boys in the bedroom. The cause of their deaths is so far “unascertained,” the inquest was told.

“I love Adam and Matthew and we will all be together again soon,” the deranged killer dad wrote in a suicide note, according to the Sun.

He also told his wife in the note, “Sal, I’m so sorry for all the things I’ve done and hurt you … If you had left it, we could have been happy forever.”

The inquest continues.