Sonny Bill Williams has revealed he underwent successful open-heart surgery after doctors discovered a congenital heart defect that he says could have caused him to die suddenly without warning.

The former All Blacks star shared the frightening experience in an emotional YouTube video titled My Heart Stopped, filmed with his wife, Alana. 

Williams said the condition was discovered during follow-up checks after his fourth major neck operation earlier this year.

The 41-year-old, who won two Rugby World Cups with New Zealand, described the heart operation as the hardest experience of his life. He recalled reaching the second day of his recovery and genuinely fearing he might not survive.

Williams feared he would not survive

Williams explained that the heart problem came to light when he attended a medical appointment following his neck surgery. He believes the discovery may have saved his life.

"If I didn't go in and get it checked, they wouldn't know. And it's a case of a perfectly healthy-looking person, dropping dead," he said.

His wife, Alana, described the fear surrounding the operation in the video.

"I just said bye to my husband. It's a little bit daunting, but he's so strong. He'll be OK," she said.

Williams underwent surgery at Royal Melbourne Hospital. Although the operation was successful, he described a difficult recovery that included pain and hallucinations.

"It's the hardest thing I've ever done. Day two, honestly, I thought I wasn't going to make it. It was crazy," he said.

He also reflected on what doctors told him about the possible effect of the condition on his sporting career.

"Upon reflecting, I feel like towards my late-20s, I definitely felt like I couldn't get as fit as I used to," Williams said.

He added that doctors had described the discovery as a remarkable stroke of luck because the defect could have gone undetected in someone who appeared physically healthy.

Williams said doctors had told him his heart was now functioning more efficiently after the procedure.

"And now, the doctors said that I've got a better heart than when I walked in here because it's more efficient now," he added.

 "The magnitude of the surgery, two open-heart surgeries in one, and it's been so successful."

Surgeon explains the impact on his career

The video also features Williams speaking with his surgeon, Dr Michael O'Keefe, about the nature of the heart defect and the operation.

Williams asked whether the condition would have affected his career as an elite athlete. O'Keefe said it would have, while pointing to the physical capacity Williams had demonstrated throughout his sporting life.

"Definitely the fact that you did so well at such a high level just goes to show you how fit you must have been to be able to compensate for it," the surgeon said.

"You've been playing with a handicap which you haven't realised for a long time."

Williams' account highlights how the condition remained undiagnosed despite years of competing at the highest levels across different sports. He played 58 Tests for New Zealand between 2010 and 2019, winning the Rugby World Cup in 2011 and 2015.

He also enjoyed a successful rugby league career before switching codes, represented New Zealand in rugby sevens at the 2016 Olympic Games and later pursued professional boxing.

The health scare follows a difficult period involving his neck. Williams underwent major surgery earlier this year and subsequently experienced complications during his recovery, making the discovery of the heart defect another serious challenge.

Williams grateful after frightening ordeal

Despite the fear surrounding the operation, Williams spoke with gratitude about its outcome and the support he received from his family and medical team.

He repeatedly expressed his thanks to God, using the Arabic phrase "Alhamdulillah", meaning praise be to God, as he reflected on the experience.

The video gives a personal account of a health scare that Williams said he had never anticipated. His surgeon's explanation also underlined how his exceptional fitness may have helped him compensate for a condition he did not know he had.

Williams has now turned his attention towards raising awareness of the importance of heart checks, particularly because a person can appear healthy without knowing that a serious problem exists.

For the former All Blacks star, the successful operation has brought relief after an experience he described as the most difficult of his life. It has also given him a new perspective on his health and the sporting career he managed to build without knowing about the defect.