The Texas Rangers have agreed to a deal with Tim Lincecum, a source has confirmed.

Lincecum, 33, last pitched in the Major Leagues for the Los Angeles Angels in 2016. He went 2-6 with a 9.16 ERA in nine starts.

The right-hander was the National League Cy Young winner in both 2008 and 2009 as a member of the San Francisco Giants.