With just hours until the start of free agency, the Pittsburgh Penguins and center Evgeni Malkin agreed on a four-year contract extension to keep him in Pittsburgh.

 The four-year contract will pay Malkin $6.1 million per season throughout the deal.

“Evgeni is a generational talent who will be remembered as one of the greatest players in NHL history,” said Penguins general manager Ron Hextall. “His hockey resume and individual accomplishments speak volumes about him as a player, and we are thrilled to watch him continue his remarkable legacy in Pittsburgh.”

The four-year contract will keep Malkin in Pittsburgh through the 2025-26 season. 

The announcement of the extension came just over 24 hours after it was reported Malkin would test free agency after failing to agree to an extension.

Malkin has played all 16 seasons in the NHL with the Penguins. He ranks third all-time in franchise history with 1,146.