San Francisco announced the decision and date on Tuesday. The Giants are facing the Pittsburgh Pirates at 6:05 p.m. PDT that night at AT&T Park in San Francisco.
Bonds, 53, played 15 seasons for the Giants after signing with the team in 1992. He played his first seven seasons for the Pittsburgh Pirates. The 14-time All-Star and seven-time MVP has the most home runs in Major League Baseball history, with 762. He also had an MLB record 2,558 walks and 688 intentional walks.
He set the single-season home run record in 2001 when he belted 73 homers for the Giants.
"I'm both honored and humbled that the Giants are going to retire my number this season," Bonds told the Giants.
"As I've always said, the Giants and Giants fans, are a part of my family."
Bonds' No. 25 will be the 10th uniform number retired by the Giants, not including Jackie Robinson's No. 42.
"No other Giants player has worn No. 25 since Barry's final season," Giants president and CEO Laurence M. Baer said in a statement, according to to MLB.com. "It's time to officially retire his number in honor of his remarkable 22-year career as one of the greatest players of all time and for his countless achievements and contributions as a Giant."
"Barry grew up with the Giants and followed in the footsteps of his Godfather Willie Mays and another Giant legend who also wore number 25 -- his late father, Bobby. By officially retiring No. 25, we will not only pay tribute to Barry as the greatest player of his generation, but also honor the legacy of two of the greatest players to ever wear a Giants uniform."
Bonds works as a special advisor with the Giants. The club is also giving the first 20,000 fans in attendance for the game a special edition No. 25 retirement ceremony cap.