Ryan Poehling recorded a hat trick and added the shootout winner in his NHL debut as the Montreal Canadiens beat the Toronto Maple Leafs 6-5 Saturday in the regular-season finale for both teams.

Jordan Weal and Andrew Shaw also scored for the Canadiens (44-30-8), who were eliminated from playoff contention Friday night.

Goalie Charlie Lindgren, in his first game of the season, stopped 44 of 49 shots. Lindgren filled in for Carey Price, who had started the previous 13 games.

Montreal Canadiens' Ryan Poehling (25) celebrates with teammates Brett Kulak (17), Andrew Shaw (65) and Jeff Petry (26) after scoring against the Toronto Maple Leafs during third period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Montreal Canadiens’ Ryan Poehling (25) celebrates with teammates Brett Kulak (17), Andrew Shaw (65) and Jeff Petry (26) after scoring against the Toronto Maple Leafs during third period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)

Price ended the season with a 35-24-6 record and a .918 save percentage.

Zach Hyman, Jake Gardiner, Trevor Moore, William Nylander and Kasperi Kapanen scored for the Maple Leafs (46-28-8), who will face the Boston Bruins in the first round of the playoffs. Frederik Andersen stopped 44 of 49 shots.

Poehling scored the shootout winner on Montreal’s fourth shot, after John Tavares failed to win it for Toronto. The American-born Poehling, Montreal’s first pick (25th overall) in the 2017 draft, recently completed his third NCAA season at St. Cloud State.

Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens' Ryan Poehling during third period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens’ Ryan Poehling during third period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)

The shots were 49-49 after overtime — a Canadiens’ record for combined shots in a game.

Montreal became the last team eliminated from playoff contention on Friday when the Columbus Blue Jackets beat the New York Rangers 3-2 in a shootout. The Canadiens have missed the playoffs in back-to-back seasons for the first time since 2001.

Toronto jumped to a 2-0 lead in the first period. Hyman’s no-look shot went off Shea Weber’s skate and into the net at 5:50. Gardiner’s shot from the point was deflected by Brendan Gallagher at 8:03.

Toronto Maple Leafs' William Nylander scored against Montreal Canadiens goaltender Charlie Lindgren during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs’ William Nylander scored against Montreal Canadiens goaltender Charlie Lindgren during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)

Poehling scored his first NHL goal on his fourth shift, at 11:41, going hard to the net and ramming the puck past Andersen.

Poehling, a native of Lakeville, Minnesota, scored his second of the game to make it 2-2 on an easy tap-in at 2:56 of the second period.

Poehling, who signed three-year entry-level deal last Sunday, became the fifth Canadiens player in franchise history to score at least two goals in his NHL debut. He’s the first to do it since John Ferguson in 1963, and the first to record a hat trick since Alex Smart in 1943.

Montreal Canadiens' Phillip Danault (24) and Brendan Gallagher (11) move in on Toronto Maple Leafs goaltender Frederik Andersen as Leafs' Calle Rosen (48) and Justin Hall defend during first period NHl hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Montreal Canadiens’ Phillip Danault (24) and Brendan Gallagher (11) move in on Toronto Maple Leafs goaltender Frederik Andersen as Leafs’ Calle Rosen (48) and Justin Hall defend during first period NHl hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)

Montreal grabbed its first lead of the game when Weal scored a power-play goal at 7:04 of the second.

Toronto tied it less than two minutes later on Moore’s second of the season on a partial breakaway.

Shaw gave the Canadiens a 4-3 lead when he completed a give-and-go with Max Domi and Artturi Lehkonen at 10:17.

Toronto Maple Leafs' Andreas Johnsson (18) moves in on Montreal Canadiens goaltender Charlie Lindgren during first period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs’ Andreas Johnsson (18) moves in on Montreal Canadiens goaltender Charlie Lindgren during first period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)

Nylander made it 4-4 at 17:33 of the second on a wraparound after Lindgren overcommitted to his left.

With 11:56 left to play in a 4-4 game, the Leafs broke the deadlock when Auston Matthews found Kapanen alone in the slot for the winner.

Poehling completed his hat trick with 2:31 left.

Toronto Maple Leafs' Nazem Kadri (43)) moves in on Montreal Canadiens goaltender Charlie Lindgren as Canadiens' Jordie Benn defends during first period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs’ Nazem Kadri (43)) moves in on Montreal Canadiens goaltender Charlie Lindgren as Canadiens’ Jordie Benn defends during first period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)

NOTES: With an eye toward the playoffs, Toronto rested four of its top defensemen: Ron Hainsey, Jake Muzzin, Nikita Zaitsev and Travis Dermott. … Legendary broadcaster Bob Cole called his final game after a 50-year career. . Canadiens defenseman Paul Byron was out with a wrist injury. . The Canadiens will clean out their lockers on Tuesday.

UP NEXT

Maple Leafs: Will face the Boston Bruins in first round of the playoffs.

Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens' Jordan Weal during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens’ Jordan Weal during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)

Canadiens: Offseason.

___

Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens' Andrew Shaw during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens’ Andrew Shaw during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs' Zach Hyman moves in on Montreal Canadiens goaltender Charlie Lindgren during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs’ Zach Hyman moves in on Montreal Canadiens goaltender Charlie Lindgren during second period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens' Ryan Poehling during third period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)
Toronto Maple Leafs goaltender Frederik Andersen is scored on by Montreal Canadiens’ Ryan Poehling during third period NHL hockey action in Montreal, Saturday, April 6, 2019. (Graham Hughes/The Canadian Press via AP)