WASHINGTON (AP) — A person familiar with the negotiations says that 2013 AL Cy Young Award winner Max Scherzer has agreed to a seven-year contract with the Washington Nationals.

The person spoke to The Associated Press on condition of anonymity because no deal had been announced.

Scherzer, a 30-year-old right-handed starter, became a free agent after spending the past five seasons with the Detroit Tigers. He turned down an offer from Detroit last March that would have paid him $144 million from 2015-20.

He was 18-5 with a 3.15 ERA in 2014, a year after going 21-3 with a 2.90 ERA and being voted the best pitcher in the American League.