CINCINNATI -- On Thursday, the San Francisco Giants finalized their trade to get Carlos Beltran, who said goodbye to the New York Mets Wednesday night after giving his OK to the deal.

The Mets had received a 24-hour window to negotiate with the All-Star outfielder about waiving his no-trade clause. Shortly before an 8-2 win over the Reds on Wednesday night, Beltran arrived in the clubhouse and told his teammates he was on his way to join the Giants in Philadelphia.

"He came over and shook everybody's hands and said thank you," Mets outfielder Angel Pagan said. "We were very happy for him. He's going to be with a team that's a contender."

The Giants will finish a series in Philadelphia on Thursday night, then fly to Cincinnati for a three-game series this weekend, leaving Beltran with a back-and-forth trip.

His new team was eager to greet him.

"Having a guy like Beltran obviously adds a lot of positive energy," Giants closer Brian Wilson said. "With that kind of hitter, you're going to start seeing guys in front of him, guys hitting behind him, getting more pitches."

The All-Star slugger had the option to block any deal because he is a 14-year veteran who has spent the past seven seasons in New York, giving him 10-and-5 rights. Sources had told ESPN The Magazine's Buster Olney that Beltran would waive his no-trade clause after the Mets and Giants reached agreement on the deal.

A Mets source told ESPNNewYork.com's Adam Rubin the deal would be made official Thursday.

Earlier Wednesday, two sources with knowledge of the trade talks told ESPN The Magazine's Tim Kurkjian the Giants were closing in on a deal for Beltran.

As part of a package for Beltran, the Giants would include pitcher Zack Wheeler, sources told Olney. He is 7-5 with a 3.99 ERA in 16 starts for San Francisco's high Class-A affiliate in San Jose. The Giants selected Wheeler with the No. 6 pick in the 2009 draft.

To complete the deal, the Mets will pick up $4 million of the $6.5 million that Beltran has left on his contract.

"While we have been engaged in discussions, we're not in position to comment at this time," the Mets said in a statement.

Manager Terry Collins was told to hold Beltran, who was not at batting practice Wednesday, out of the lineup. It is the second major trade for the Mets, who dealt closer Francisco Rodriguez to Milwaukee after the All-Star Game.