Updated

Sam Gagner continued to rack up the points and Ryan Nugent-Hopkins scored the shootout winner as the Edmonton Oilers beat the league-leading Detroit Red Wings 5-4 on Saturday night.

Gagner had two goals and an assist one night after his eight-point game in Edmonton's 8-4 win over Chicago. He also scored in the shootout.

The Oilers blew a 3-1 lead in the third period but sent it to overtime when Jordan Eberle scored with 39 seconds left.

Eberle ended up with a pair of goals for the Oilers, who have won three in a row and are 4-0-1 in their last five games.

Todd Bertuzzi had a pair of goals, and Valtteri Filppula and Drew Miller also scored for the Red Wings, who snapped a two-game winning streak and lost for only the second time in 11 games.

Detroit almost got on the board first before the game was 2 minutes old. Darren Helm had a short-handed breakaway, but Oilers starter Devan Dubnyk was able to come up with a clutch save.

The Oilers made good on the power play a minute later as Gagner knocked the rebound of Ryan Whitney's shot past Red Wings goalie Ty Conklin.

Gagner got his second point of the night just before the 6-minute mark of the first. He put the puck on net, and it slipped beneath Conklin and went to Eberle, who scored his 21st of the seasons.

Edmonton retained the lead after killing off a two-man disadvantage. Corey Potter was given a double-minor for coming to the aid of teammate Ales Hemsky after he was crushed along the boards by Niklas Kronwall. An addition penalty to Edmonton's Ladislav Smid left the team down two players for a full 2 minutes.

Gagner had a direct result on two more goals to close out the first period, one by each team.

With 37 seconds to play, Gagner coughed up the puck to Filppula in his own zone on the power play. Filppula fanned on his shot but it hit Whitney's and trickled into the Oiler net, just out of the reach of a diving Dubnyk, for the short-handed goal.

Gagner redeemed himself with less than a second left in the period on the same power play as he tipped in a Ryan Smyth shot for his second of the game. It was the 11th consecutive Edmonton goal that Gagner got a point on, all within a three-period span going back to the second period of the win over Chicago.

Recent call-up Joey MacDonald started the second period in the Detroit net.

Detroit made it a one-goal game 2 minutes into the third as Henrik Zetterberg fed it to Bertuzzi from behind the net and he whacked at the puck under Dubnyk.

The Red Wings tied the game 3-all only 3 minutes later as Helm got the puck through to Miller in front of the net and had an easy redirect for his 10th of the year.

Detroit took a 4-3 lead with just under 4 minutes to go as Bertuzzi showed some skill, passing it to himself through defenseman Andy Sutton's legs before beating Dubnyk up high.

With Dubnyk on the bench, the Oilers sent it to extra time as Eberle found the puck in a scramble in front and put it past MacDonald.

Notes: It was the third of four meetings between the two teams this season. Detroit won the first two games by 3-0 and 3-2 scores. The Oilers came into the game with seven straight losses to the Red Wings. ... Detroit G Jimmy Howard was out with a broken finger. ... Dubnyk made his career-high fifth consecutive start in goal for Edmonton. ... After an injury-filled season, the Oilers are almost back to full strength as the league's rookie points leader, Nugent-Hopkins, returned to the lineup after missing the last 13 games with a shoulder injury. D Tom Gilbert, the only Oiler still on the IR, is expected to play early next week. ... Bertuzzi was able to play after being listed as questionable going in with a charley horse.