WASHINGTON — Sam Bennett scored with 24 seconds remaining in regulation Friday to lift the Florida Panthers to a 3-2 comeback win over the Washington Capitals at Capital One Arena, a victory that pushed Florida to 15-8-3 and into second place in the Atlantic Division.

The Panthers trailed 2-1 with less than five minutes left in the third period before Eetu Luostarinen tied it at 15:42, then Bennett deflected a Matthew Tkachuk shot past Logan Thompson to seal it. The goal was the second-latest go-ahead goal in the NHL this season.

“It was just a good offensive shift,” Bennett said. “We were just buzzing around. Brady made a good play over to Matthew, and he threw it on net. I was just battling in front and it’s just one of those ones that goes off you and goes in. Yeah, we’ll definitely take it.”

Bennett, now tied for first on the Panthers with 12 goals this season, was set up by both Tkachuk brothers — Matthew and Brady — who each recorded assists on the winner. Matthew Tkachuk increased his team-leading assist total to 29 on the night.

“You think back to when you’re kids and being able to help get a 3-2 goal with 24 seconds left for a game-winner, we would’ve been dreaming about these as young kids,” Matthew Tkachuk said of sharing the moment with his brother. “It’s pretty cool.”

Washington’s rookie defenseman Cole Hutson, a Calder Trophy contender, scored twice for the Capitals — a power-play goal at 10:26 of the first period to make it 1-0, and a go-ahead shot from deep at 13:06 of the third to put Washington up 2-1. Aaron Ekblad answered the first Hutson goal with a power-play strike from the left circle at 4:51 of the second period — his 43rd career power-play goal as a Panther — with Matthew and Brady Tkachuk each picking up assists.

The Panthers dominated the middle frame, leading 29-9 in shot attempts. “We were over turkey’d and gravy’d in the first period, probably,” head coach Paul Maurice said. “We weren’t as quick with the puck, and then I thought our second period was excellent.”

Luostarinen’s equalizer came off a feed from Brad Marchand, who has posted four assists in two games since returning from injury. Luostarinen credited Marchand’s return for elevating his own play. “I feel like he really brings that offensive side of my game up,” Luostarinen said. “He talks a lot, so that helps. He has energy. He’s on the puck and he makes plays, so I just feel better offensively.”

Maurice echoed that assessment. “He shows up and they just start scoring, right? That’s just a fact,” Maurice said of Marchand’s impact on linemates Anton Lundell and Luostarinen. “I think it’s part of the positivity by him on the bench with everybody.”

In net, Jacob Markstrom made 24 saves for Florida, including four high-danger stops. Thompson finished with 28 saves for Washington. Anton Lundell won 71.4% of his faceoffs, and Florida led 20-7 in 5-on-5 shot attempts when Bennett was on the ice.

The Panthers will also be monitoring forward Garnet Hathaway, who leads the team in hits this season and left the game in the third period with a lower-body injury after a knee-on-knee collision. Maurice said he is unlikely to play Saturday. “We’ll get him looked at,” Maurice said.

Florida returns to action Saturday at 6 p.m. ET when the Panthers host the Tampa Bay Lightning at Amerant Bank Arena in Sunrise.