ESPN is reporting this morning that the Philadelphia Phillies and pitcher Cole Hamels have agreed to a six-year agreement worth a little more than $140 million.

If the report based on sources is true, the 28-year-old Hamels will become the second-highest paid pitcher in history. Only the Yankees' CC Sabathia, who signed a seven-year deal worth $161 million back in 2008, makes more.

The Phillies had been hoping to re-sign the left-handed Hamels before the 2008 World Series MVP became a free agent after this season. With the July 31 non-waiver trade deadline looming, the Phillies faced the prospect of trading him, or losing him in the offseason. Though Hamels was open to returning to the Phils even if he was traded, a deal would ensure he remains with the team.