Right-hander Aaron Nola and the Phillies agreed to a seven-year contract on Sunday, the team announced, as Philadelphia locked up its longtime rotation stalwart after nearly three weeks of inactivity in the MLB free agent market.

Philadelphia didn't announce the deal's value, but sources told ESPN it is worth $172 million.

The 30-year-old Nola has spent all 10 years of his professional career with the Phillies, who took him with the seventh pick in the 2014 draft and promoted him to the major leagues barely a year later.