NEWARK (AP) -- Gustav Nyquist scored the only goal in the shootout, and the Detroit Red Wings rallied for a 5-4 win over the New Jersey Devils on Friday night.

Detroit Red Wings center Gustav Nyquist (14) scores a goal against New Jersey Devils goalie Cory Schneider during a shootout
Detroit Red Wings center Gustav Nyquist (14) scores a goal against New Jersey Devils goalie Cory Schneider during a shootout . (AP Photo/Julio Cortez)
loading...

Detroit had trailed 4-1 before surging to victory.

Riley Sheahan, Xavier Ouellet, Justin Abdelkader and Drew Miller scored for the Red Wings in regulation. Backup goalie Petr Mrazek, in his second start of the season, made 21 saves for Detroit through overtime.

Mike Cammalleri scored two power-play goals for New Jersey. Jaromir Jagr got his 709th goal, moving into sole possession of sixth place on the NHL career list - one ahead of Mike Gartner. Peter Harrold also scored for the Devils.

Nyquist beat Cory Schneider in the third round of the shootout, and Mrazek sealed the win with a pad stop on Michael Ryder.

Mrazek was the fourth backup the struggling Devils faced in five games. New Jersey has only three wins in 12 games.

Jagr had two points, giving him 1,770 and moving him within one of Marcel Dionne, who is fifth on the career list.

The Red Wings have won three in a row and five of six. Niklas Kronwell and Henrik Zetterberg each chipped in two assists.

The Red Wings scored a third unanswered goal when Miller netted his first of the season at 10:07 of the third period to make it 4-4.

Kronwell drove hard to the net, only to have his shot blocked. Miller swatted the loose puck into the left side of the net.

Ryder had a solid chance to pull it out for Devils in the closing minutes, but couldn't deposit the backhander.

Jagr, Cammalleri and Harrold staked the Devils to a 3-1 lead after one period.

With the teams skating 4-on-4, Jagr got the Devils rolling at 2:18.

Detroit countered with a power-play goal at 3:50 when Sheahan deflected Kronwall's blast from the left point by Schneider.

Cammalleri put New Jersey back in front at 2-1, snapping a shot from the left circle for a power-play tally at 13:52.

Harrold, taking a feed that Jagr threaded through traffic, scored from the right circle dot at 15:18.

It was the first goal in 49 games for the Devils defenseman, playing in his second game this season following a recall from the minors on Nov. 17.

Cammalleri struck again on the power play, 28 seconds into the second period for the Devils' third unanswered goal.

A seemingly secure advantage slipped away as the period progressed.

Ouellet, left alone in the slot, got his first NHL goal at 1:55 to cut the deficit to two. That energized the Red Wings as they outshot the Devils 17-6 in the period.

The Devils blew a golden opportunity to reverse the momentum with a 5-on-3 power play for 1:56. New Jersey managed only one shot in that span.

Abdelkader, wide open in the slot, swatted a pass out from Henrik Zetterberg for a power-play goal at 12:52 to trim the Devils' lead to 4-3.

NOTES: After nine days on the road, where they went 1-2-1, the Devils were home for only one game. They will play at the New York Islanders on Saturday. ... Detroit hosts Vancouver on Sunday to begin a four-game homestand. ... D Marek Zidlicky dressed for the Devils despite a right foot injury sustained in New Jersey's 2-0 loss in Vancouver on Tuesday. ... Devils centers Travis Zajac and Adam Henrique went to the dressing locker room with undisclosed third-period injuries.

(© 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)

More From New Jersey 101.5 FM