Anderson signed with Surrey after being released by Lancashire.
The deal covers the 2027 County Championship season.
He took 50 wickets for Lancashire in the last County Championship season.
He has taken 704 Test wickets in 188 matches.
He will turn 45 midway through next season.
Apex Sports News
James Anderson has left Lancashire after 25 years and signed with Surrey for the 2027 County Championship season. The England legend, who turned 44, will play beyond his 45th birthday.