OTTAWA, Ontario (AP) -- Jacob Josefson scored the winner in the shootout as the Buffalo Sabres defeated the Ottawa Senators 4-3 on Thursday night.
Marco Scandella, Sam Reinhart and Scott Wilson had goals in regulation for the Sabres, who got 37 saves from Robin Lehner.
The Sabres, who are last in the Eastern Conference, were coming off a 5-1 loss to the Calgary Flames, who will play Ottawa on Friday. The Senators are only two points ahead of Buffalo in the conference.
Ryan Dzingel led the way for the Senators in regulation with two goals, and Thomas Chabot scored his sixth of the season. Craig Anderson made 31 saves.
Trailing 3-2, the Sabres tied it just 27 seconds into the third as Ryan O'Reilly found Wilson in front and he beat Anderson high.
The Senators had a number of chances to regain the lead, but Lehner either made the stop or had luck on his side.
Dzingel tied it at 1 just 36 seconds into the second period as he fired a shot from the slot, and then gave the Senators the lead with his 19th of the season three minutes later.
Buffalo was able to tie the game midway through the second as Reinhart jumped on a loose puck in front and scored off his backhand. But the Senators regained the lead to make it 3-2 as Chabot beat Lehner's glove side.
The Senators nearly made it 4-2, but shots from Dzingel and Mike Hoffman slid across the goal line and Benoit Pouliot was able to clear the puck before Ottawa got another chance.
The Sabres opened the scoring at the 17-minute mark of the first as Scandella kept the puck in at the blue line, spun and put a shot through traffic past Anderson.
NOTES: Ottawa C Tom Pyatt returned to the lineup after missing Monday's game with the flu. ... LW Max McCormick and D Erik Burgdoerfer were healthy scratches for the Senators. ... Buffalo D Josh Gorges returned to the lineup after missing the last five games.
Sabres: vs. Vegas on Saturday.
Senators: vs. Calgary on Saturday night.