Right-hander Zach Eflin and the Tampa Bay Rays are in agreement on a three-year contract worth $40 million, sources told ESPN's Jeff Passan.

The deal, which is pending a physical, is the largest free-agent contract in Rays history, topping the five-year, $35 million contract that pitcher Wilson Alvarez received before the team's inaugural 1998 season.