ST. PETERSBURG, Fla. — David Price limited his former team to two hits in eight scoreless innings, helping the Boston Red Sox beat the Tampa Bay Rays 6-2 on Monday night to move into a tie for first place in the AL East.

Price (12-8) walked two, struck out eight and didn’t allow a runner past first base while extending Tampa Bay’s scoring drought against Boston to 25 innings dating to a series at Fenway Park before the All-Star break. Evan Longoria stopped the streak with a two-run homer off Matt Barnes in the ninth.

Boston’s Andrew Benintendi drove in a run with a fourth-inning sacrifice fly. Benintendi also kept Price’s bid for a shutout alive by denying Steven Souza Jr. what would have been a two-run homer with an eighth-inning catch that nearly sent him tumbling over a short wall in the left-field corner.

The victory was the ninth in 11 games for the Red Sox and lifted them into a tie with Toronto, which was idle Monday.

Chris Young returned from a two-month stay on the disabled list to drive in a run with a double off Blake Snell (4-6), Hanley Ramirez had a sacrifice fly in the seventh and Xander Bogaerts added a two-run homer off Danny Farquhar in the ninth.

Price, who also pitched eight scoreless innings against his former team during a 4-0 victory in Boston on July 10, won for the first time as a visitor in four decisions at Tropicana Field.

Benintendi started the game in center field. He moved to left after Young was removed for pinch-runner Jackie Bradley Jr. in the eighth. The maneuvering looked like a stroke of genius when Benintendi chased down Souza’s fly ball in the corner and made a running catch before nearly flipping over the wall.

Snell, who got his first big league win against the Red Sox on June 27, threw 94 pitches and allowed four hits and five walks in 3 2/3 innings, yet Boston was only able to build a 2-0 lead against the 23-year-old rookie.

To make room for Young, who missed 51 games with a hamstring injury, the Red Sox optioned LHP Henry Owens to Triple-A Pawtucket.