Brian Hoyer's stay in Chicago was short-lived. 

Less than a year after joining the Bears, the veteran quarterback has found a new home.

According to NFL Network's Ian Rapoport, the San Francisco 49ers and Hoyer have reached an agreement on a two-year contract.

Earlier Wednesday,'s John "Moon" Mullin reported that Hoyer was at Halas Hall this week cleaning out his locker and say his goodbyes to his former teammates.

[FREE AGENCY TRACKER: Bears deal with Mike Glennon 'all but done']

Hoyer, 31, started five games with the Bears last season and tossed six touchdowns with no interceptions and had a passer rating of 98.0.

Hoyer becomes the first quarterback under contract for first-year 49ers head coach Kyle Shanahan.