Prized free-agent pitcher Gerrit Cole and the New York Yankees have agreed to a record nine-year, $324 million contract, sources told ESPN's Jeff Passan.

The deal includes an opt-out clause after five years, sources told Passan, and surpasses the deal Stephen Strasburg finalized with the Washington Nationals on Monday for most total money and annual average salary for a pitcher at $36 million.