EDMONTON — The Edmonton Oilers finally feel like they got the result they deserved from the work that they put in on Thursday.

Connor McDavid scored in overtime with a backhand and added an assist as the Oilers came from behind to snap a five-game losing streak with a 4-3 victory over the New York Islanders.

“We have been playing some good hockey, we just haven’t been finding a way to win the games,” McDavid said. “Tonight we stuck with it all night long. I thought we were the better team all night and we finally got rewarded at the end.”

Leon Draisaitl, Sam Gagner and Oscar Klefbom also scored for the Oilers (25-29-6), who have won just two games out of their last 13.

“I think we played way too good not to win this game,” Klefbom said. “It is easy to get frustrated when you play well but don’t get any points out of it. Today was a good night for us to get a lot of confidence and a boost. I think we did a lot of good stuff. It feels very good to get two points.”

Anders Lee, Brock Nelson and Cal Clutterbuck replied for the Islanders (35-18-7), who have lost two straight.

“We have to recognize that the last few games we’ve gotten away from what makes us successful,” said Islanders goalie Robin Lehner, who faced 41 shots. “We’re a consistent, simple hockey team that works really had. This is not how we play. We’ve got to fix it. This is not good enough.”

Edmonton grabbed the lead five minutes into the opening period on the power play as Draisaitl tipped a McDavid pass past Lehner. It was Draisaitl’s 36th goal of the season and his ninth goal in his last nine games.

The Oilers made it 2-0 less than two minutes later when Tobias Rieder sent it across to a wide-open Gagner, who scored for the first time in his return to his original team after coming back in a trade with Vancouver last week.

New York got one back with seven minutes left in the first period when Lee got a pair of cracks at a rebound before slipping his 21st of the season past outstretched Oilers goalie Mikko Koskinen.

The Islanders surged in front late in the first period with two quick goal. First they tied the game up with 39 seconds left on a two-man advantage on a one-timer from Nelson, and then got another power-play goal from Clutterbuck 28 seconds later to lead 3-2.

There was no scoring in the second period.

Edmonton had a ton of pressure in the third and finally pulled even with 2:52 remaining when Klefbom pinched in to cash in on a rebound. The Oilers outshot the Islanders 17-6 in the third to force extra time.

Both teams return to action on Saturday as the Islanders head to Vancouver and the Oilers play host to the Anaheim Ducks.

Notes: It was the second and final meeting between the two teams this season. The Islanders won the first game 5-2 last week in New York… The Islanders were playing their second game in as many nights, but it hadn’t been a problem for them previously this season, as they came into the game 9-0-0 in that scenario.