Philadelphia Phillies starting pitcher Zack Wheeler. Dale Zanine-USA TODAY Sports

The Philadelphia Phillies have taken care of one of their top offseason priorities.

ESPN’s Buster Olney reported on Monday that the Phillies have agreed to a three-year, $126 million contract extension with starting pitcher Zack Wheeler. The $42 million average annual salary makes the deal the most lucrative extension in MLB history.

Wheeler was entering the final season of a five-year, $118 million contract he signed with Philadelphia in 2020. After the Phillies missed out on Japanese pitcher Yoshinobu Yamamoto, their focus became signing Wheeler to an extension.

Since joining the Phillies, Wheeler has gone 43-25 with a 3.06 ERA. The 33-year-old has been tremendous in the playoffs as well, with a 2.42 ERA in 11 total appearances.

The Phillies also gave Aaron Nola a huge contract earlier this offseason, so their starting rotation will remain largely intact in 2024 and beyond.

More must-reads:

TODAY'S BEST
Pressure mounts on Nuggets as Nikola Jokic wins third MVP Award
Jalen Brunson shakes off injury to lift Knicks to Game 2 win
Panthers dominate Bruins to even series
LSU HC pins transfer portal struggles on reluctance to 'buy players'
Pirates announce date for 2023 No. 1 overall pick's MLB debut
Shohei Ohtani showing what would happen if he only focused on hitting
Joe Burrow shares 'support' for Bengals who requested trades
Canucks erase three-goal deficit to stun Oilers in Game 1
Watch: Pacers star ties playoff high in threes in one half
Former NFL player has major warning for Steelers QB Justin Fields: 'You can't fall into this'
Watch: Brad Marchand hurdle Panthers player on Charlie Coyle goal
LeBron James rues 'missed opportunities' against Nuggets
Cardinals star gives update on timeline for injury rehab
Police investigating Patrick Beverley incident
J.J. Watt addresses possibly ending retirement to play for Texans
Inter Miami's Lionel Messi could surpass two major MLS records
Reporter weighs in on potential Giants quarterback controversy
Cowboys to release veteran WR
Lakers want Anthony Davis' opinion in search for next head coach
Patriots exec explains why team drafted two QBs in 2024 NFL Draft