Veteran Martin Brodeur will be back with the New Jersey Devils next year.

The 40-year-old goaltender signed a two-year, $9 million contract with the Devils, ESPN.com reported Monday.

Brodeur, who is closing in on 700 wins, has played his entire career with New Jersey and the new contract likely will allow him to finish with the Devils.

The Chicago Blackhawks and Toronto Maple Leafs were thought to be interested in Brodeur after he helped lead the Devils to the Stanley Cup final for the fifth time in his career.

"It was great the Devils stepped up," Brodeur told ESPN.com. "You have to understand what's happening obviously with the ownership situation and with what's happening with Zach (Parise). I understood that. I'm just happy this got done."

Brodeur holds NHL records for most wins (656), shutouts (119) and minutes played by a goaltender.

"Deep down, what I always wanted was to re-sign with New Jersey," he said. "I'm glad the Devils stepped up when they did. As the process went on, I was certainly intrigued by what was out there. But this is really what I wanted."

In helping lead the Devils to the Stanley Cup finals against the Los Angeles Kings, Brodeur logged 14 wins, a 2.12 goals-against average and a .917 save percentage in the playoffs. New Jersey lost in the finals in six games.

During the regular season, Brodeur posted a 21-21-4 record with a .2.41 GAA and .908 save percentage.