SANTA CLARA, Calif. (AP) — A person with knowledge of the agreement says free agent wide receiver Torrey Smith has reached a five-year contract with the San Francisco 49ers, pending a physical.

The person spoke on condition of anonymity Tuesday night because the deal hadn’t been finalized.

READ MORE: President Joe Biden Addresses Several Issues During Thursday Night's Town Hall

The 26-year-old Smith had 49 receptions for 767 yards and 11 touchdowns last season, his fourth year with the Baltimore Ravens.

Earlier Tuesday, Smith posted on Twitter, “Bay Area!!!!!!”

READ MORE: Vaccinations For Younger Children Could Be Approved Next Month; The Latest On Outbreaks In Maryland Schools As 7 Children Hospitalized

He will be reunited with former Ravens teammate Anquan Boldin. The two beat the 49ers by three points in the Super Bowl at New Orleans following the 2012 season. Smith, who made a formal farewell to

Baltimore, played in college with 49ers tight end Vernon Davis at Maryland.

ESPN reported Smith’s deal is for $40 million with $22 million guaranteed.

MORE NEWS: Dirt Biker Dies After Colliding With Fire Truck In Baltimore

(Copyright 2015 by The Associated Press. All Rights Reserved.)