Report: Matt Schaub staying with Falcons

072816 FLOWERY BRANCH: Falcons backup quarterback Matt Schaub throws a pass during the first day of training camp on Thursday, July 28, 2016, in Flowery Branch. Curtis Compton /ccompton@ajc.com

Credit: D. Orlando Ledbetter

Credit: D. Orlando Ledbetter

072816 FLOWERY BRANCH: Falcons backup quarterback Matt Schaub throws a pass during the first day of training camp on Thursday, July 28, 2016, in Flowery Branch. Curtis Compton /ccompton@ajc.com

FLOWERY BRANCH -- Falcons backup quarterback Matt Schaub has agreed to a two-year, $9 million deal to return on Wednesday, according to an ESPN report.

The deal has not been turned into the league and is not official yet. It's an extension and will be announced by the team when it's official.

Schaub was reportedly considering joining former Falcons offensive coordinator Kyle Shanahan in San Francisco.

Schaub, 35, who was selected by the Falcons in the third round (90th overall) of the 2004 draft, has played in 146 games and made 92 starts. The former Virginia star has posted a 47-45 record as a starter.

After playing seven seasons with the Texans, he played a season in Oakland and was with Baltimore, where he was 1-1 over two starts in 2015.

He played in five games for the Falcons last season, completing 1 of 3 passes in mostly mop-up duty.