The Chicago Cubs have agreed to terms with John Lackey on a two-year contract worth $32 million, according to multiple sources.

The team has yet to confirm the deal, which is contingent on Lackey's passing a physical.

The Cubs will forfeit their first-round pick as Lackey was extended a qualifying offer by the St. Louis Cardinals.