Alex Ovechkin scored his 879th career goal to move within 16 of breaking Wayne Gretzky’s NHL goals record and the visiting Washington Capitals beat the Philadelphia Flyers 4-3 on Thursday night.

Ovechkin scored with 53 seconds remaining in the first period, taking a centering pass from Martin Fehervary and flicking it past Ivan Fedotov to tie the game at 1-1. It was Ovechkin’s 26th goal of the season.

Jakob Chychrun scored the winner with 7:55 left to play. Washington trailed 3-2 after two periods.

Matvei Michkov scored two goals for the Flyers, who dropped their fifth straight game.

GOLDEN KNIGHTS 3, DEVILS 1: Nicolas Roy, Shea Theodore and Jack Eichel scored and Adin Hill made 16 saves as visiting Vegas defeated New Jersey and snapped a four-game skid.

The Golden Knights also won on the road for just the second time since Jan. 7.

Ondrej Palat ruined Hill’s shutout bid with his 12th goal at 15:43 of the third.

LIGHTNING 5, SENATORS 1: Brandon Hagel scored the go-ahead goal for the second consecutive game, helping host Tampa Bay beat Ottawa to sweep a two-game set with the Senators.

The Lightning moved into a tie with Ottawa for third place in the Atlantic Division.

Michael Amadio scored for Ottawa.

UTAH HOCKEY CLUB 3, BLUE JACKETS 2, OT: Dylan Guenther scored with 33 seconds left in overtime to lift visiting Utah past Columbus for its second straight win.

Lawson Crouse and Olli Maatta also scored for Utah.

Justin Danforth scored and Ivan Provorov had a short-handed goal for the Blue Jackets.

WILD 2, HURRICANES 1: Filip Gustavsson made 38 saves and host Minnesota scored for the first time in three games in a victory over Carolina.

Yakov Trenin and Vinnie Hinostroza scored for the Wild, who had been shut out 6-0 by the Senators and 3-0 by the Bruins in their previous two games.

Sebastian Aho scored for the Hurricanes with 2:48 remaining in the game, spoiling a potential shutout for Gustavsson.

PANTHERS 3, BLUES 2: Sam Reinhart scored with 12 seconds left to give visiting Florida a victory over St. Louis.

Matthew Tkachuk had a goal and an assist to help the Panthers win for the fourth time in five games.

Zack Bolduc had a goal and an assist for the Blues.

AVALANCHE 4, FLAMES 2: Nathan MacKinnon had three second-period assists to regain the NHL points lead, Martin Necas scored twice and added an assist and visiting Colorado beat Calgary.

MacKinnon has 83 points on 20 goals and an NHL-best 63 assists — to take a two-point lead over Edmonton’s Leon Draisaitl.

Jonathan Huberdeau scored his team-leading 21st goal for the Flames and defenseman Rasmus Andersson also scored.

BLACKHAWKS’ DICKINSON OUT WITH ANKLE SPRAIN: Chicago Blackhawks center Jason Dickinson will be sidelined for a “couple games” with a high ankle sprain, interim coach Anders Sorensen said Thursday.