The New York Mets terminated David Wright’s rehab assignment because of shoulder pain and ruled Yoenis Cespedes out for the rest of the season with a hamstring injury.

The banged-up Mets announced Monday Wright was returning to New York to be re-examined later this week. Wright played third base Friday and Saturday at Class A St. Lucie and decided to have the shoulder pain checked by doctors.

Cespedes strained his right hamstring running the bases in Washington on Friday night. An MRI confirmed the strain, which includes a recovery time of six weeks, ending Cespedes’ season.

More injuries

• The Washington Nationals reinstated Max Scherzer from the 10-day disabled list to start Monday’s series opener against the Miami Marlins and activated outfielder Jayson Werth from the 60-day disabled list. Scherzer (12-5, 2.25 ERA) missed two starts since being sidelined with inflammation in the left side of his neck. The two-time Cy Young award winner allowed two runs and five hits over seven innings in his previous appearance on Aug. 13 against San Francisco.

• The Pittsburgh Pirates placed infielder Adam Frazier on the 10-day disabled list with a strained right hamstring. The Pirates also recalled outfielder Jordan Luplow and right-hander Dovydas Neverauskas from Triple-A Indianapolis before Monday night’s game against the Chicago Cubs. Right-hander Johnny Barbato was sent down to their top farm club.

• The Colorado Rockies activated outfielder/infielder Ian Desmond from the disabled list, where he’s been for the last month with a strained right calf. Desmond is hitting .285 with five homers and 32 RBI. He’s struggled to stay healthy this season after signing a five-year, $70 million deal in December.

Home run binge

During his home run binge, Giancarlo Stanton is also content to settle for singles. Stanton went 8-for-10 to lead the Miami Marlins to a three-game weekend sweep of San Diego, raising his average to a career high .296. He hit three homers, increasing his season total to 50, along with three singles and two doubles.

“A lot of people from the outside are probably thinking he’s just going up there trying to hit a homer every at-bat, but that’s not the case,” teammate Christian Yelich said.

The series raised Stanton’s average in 23 games since Aug. 4 to .402. That includes 13 singles, five doubles and 17 homers for an OPS of 1.531.

A recent tweak in Stanton’s stance has helped him lay off outside breaking pitches, long his biggest weakness. Swinging most at strikes, he’s willing to hit the ball the other way or on the ground or both, depending on the situation.

The goal, he said, is to make the most of every trip to the plate.