The 33-year-old forward last played for the Dallas Stars against the New York Islanders on Dec. 23, 2018, nine months after he had spinal fusion surgery.
It was the third surgery for Hanzal, who had a history of back injuries. In July 2008, he had surgery to repair a herniated disk before having another surgery on his back in February 2015.
"It's a little bit of a relief because the last couple of years I wasn't sure if I'd play another NHL game or be healthy again, so now it's official: I am retired from the NHL," Hanzal told AZ Coyotes Insider on Sunday. "If I was healthy, I would probably still be playing, but after three back surgeries, and especially after the last one, I just can't do it anymore. I was doing everything I could after this last one, and it took me a year to get back on the ice.
"When I went to see the doctor again, it was either do another surgery or be done playing. Even the doctor said, 'We're not sure another surgery will help.' I still have a long life ahead of me. I don't want to do another surgery when it's not 100 percent sure it will even help."
Selected by the Phoenix Coyotes with the No. 17 pick in the 2005 NHL Draft, Hanzal scored 338 points (127 goals, 211 assists) in 12 seasons with the Coyotes, Minnesota Wild and Stars. He scored the fastest hat trick from the start of a game in Coyotes/Winnipeg Jets history, his third goal coming 27 seconds into the second period of a 6-3 win against the Toronto Maple Leafs at Gila River Arena on Dec. 4, 2008.