Three-time Cy Young Award winner Max Scherzer is headed from the New York Mets to the Texas Rangers, the Rangers confirmed on Sunday.

¡°We¡¯ve acquired right handed pitcher Max Scherzer and cash considerations from the New York Mets in exchange for minor league infielder/outfielder Luisangel Acuna,¡± the team said in a brief statement.

The deal had been widely reported on Saturday night, a day after Scherzer indicated to reporters he was unhappy with the Mets¡¯ direction after they traded closer David Robertson to the Miami Marlins.

¡°I¡¯ve probably got to have a conversation with our front office,¡± said Scherzer, who turned 39 on Thursday.

¡°You traded our closer away. I¡¯m sure a bunch of people are going to have to have a conversation with the front office. I have not had a conversation.¡±

Scherzer, who had a complete no-trade clause in his contract, had to approve the deal.

He also had a $43.3 million player option for the 2024 season which gave him control over his future.

ESPN reported that as part of the deal Scherzer has elected to opt in to the 2024 season with the Rangers, who will pay Scherzer $22.5 million, with the Mets covering more than $35 million of remaining money owed the future Hall of Famer.

Scherzer was a key member of the Washington Nationals¡¯ World Series-winning staff in 2019.

He¡¯s had an erratic season for the Mets with a 4.01 ERA in 107? innings over 19 starts.

He has allowed 23 home runs, the most in the National League.

Rangers are hoping he can bolster a pitching rotation that has struggled in the last month, with starting pitchers Martin Perez, Dane Dunning, Jon Gray and Andrew Heaney combining for a 5.89 ERA.

At 60-45 the Rangers lead the American League West division but were just one game ahead of the Houston Astros entering Sunday.

The Mets, who are in fourth place in the National League East, 18 games behind the Atlanta Braves, will get a solid prospect in 21-year-old Acuna, younger brother of Braves star Ronald Acuna.