The 25-year-old has been linked with a move to Tottenham in recent days.
Ferguson will hand Foster a contract extension until 2012.
The new deal will see the England international earn around £40,000 a week.
Foster has impressed Sir Alex Ferguson and the United boss believes he will eventually becoma United and England No.1.