The Ravens will receive a sixth-round draft choice in return, the sources said.
Boldin is currently in Africa on a mission and is scheduled to pass a physical before the trade with San Francisco becomes complete.
The trade agreement was earlier reported by the Baltimore Sun.
Boldin is scheduled to earn $6 million in the coming season and carries a $7.531 million salary-cap figure.
Boldin told USA Today that he was unwilling to slash his salary in order to stay with the team, citing “principles.”
“At no point, no matter how well I played, would I come back to the table and say, ‘I need more money.’ The contract that I signed was the contract that I intended to play out,” USA Today quoted Boldin.
In the playoffs, Boldin caught 22 passes for 380 yards receiving (95 yards per game) and four touchdowns. He has led Baltimore in receiving yards in each of the past three seasons since being traded from Arizona.
"Health is Wealth" - Ask The Experts Podcast 12/16/23
Wilie Mukasa Dada Ricks, Ruban Roberts, Dr. Nah Dove & Senator Jill Carter l The Carl Nelson Show
Winter Storm Warning Issued For Parts Of Maryland As More Snow Approaches The Region
Professor Manu Ampim & Professor James Small l The Carl Nelson Show
Lunch with Labor 2/6/24 - "Open Mic"
Here’s who is running for office in Baltimore this year
Here’s Travis Kelce’s not-so-nice take on pregame incident with Justin Tucker
Lunch with Labor 1/16/24 - "Open Mic"