Manny Machado shakes off the boos he received at Yankee Stadium by saying it happens everywhere. (0:33)

NEW YORK -- Yankees fans drubbed Manny Machado with the same intensity Clint Frazier, Brett Gardner and Gary Sanchez pounded the baseball.

The $300 million infielder was greeted with loud boos and chants of "Over-rated!" on Monday in his first visit to New York since free agency. Machado went 1 for 4 with a too-little, too-late leadoff double in the ninth inning during the Yankees' 5-2 victory over the San Diego Padres, the eighth win in nine games for the AL East leaders.

"You're in New York. I get booed everywhere I go," Machado said. "Great players get booed."

Machado struck out, popped out and hit into a double-play grounder in his first three at-bats, pleasing the Bleacher Creatures. He wouldn't judge whether the salutation was louder than elsewhere.

"How can you compare? A boo's a boo," he said during a sometimes terse 3 1/2-minute postgame media session.

A four-time All-Star with division rival Baltimore before he was dealt to the Los Angeles Dodgers last summer, Machado was interested in playing for the Bronx Bombers after becoming a free agent last fall and dined with Yankees officials in December in hopes of becoming their third baseman. New York did not bite, and Machado signed a $300 million, 10-year contract with the Padres in late February.

New York's third basemen have 30 RBI this year, four more than Machado. Yankees manager Aaron Boone thought the reception was predictable.

"More a tribute to what a good player Manny is," he said.

San Diego became the last opposing team to play at new Yankee Stadium, which opened in 2009, and quickly gained firsthand knowledge of its homer-friendly dimensions

Matt Strahm (2-4) struck out a career-high 10 in six innings but wasted a 2-0 lead in the Yankees' three-run second.

Frazier tied it with his 10th homer, a no-doubt drive over the left-field scoreboard. Gio Urshela walked and Gardner hit a 352-foot fly over the right field short porch, leading Strahm to slam his glove against a thigh in anger. Sanchez added his 16th homer off Craig Stammen in a two-run eighth, an opposite-field shot measured at 353 foot over the short porch.

"I think everybody kind of knows Yankee Stadium, how short right field is," Machado said. "You definitely saw that today with Gary. That was what, 300 feet?"

Short on starting pitching with Luis Severino, James Paxton and CC Sabathia on the injured list, New York used Chad Green as an opener for the third time, and he struck out the side in a perfect first as Machado swung under a slider.

"That's overpowering, dominating Greeny when he's at his best," Boone said. "He set the tone."

David Hale (1-0) allowed RBI doubles by Josh Naylor and Austin Hedges in the second, then started pitching more quickly and retired his last 10 batters for his first win since September 2015 with Colorado.

"It's felt like a while," Hale said.

Adam Ottavino, Tommy Kahnle, Zack Britton and Aroldis Chapman followed with an inning each, combining for three-hit relief in a six-hitter. Chapman got his 15th save in 16 chances.

"It's borderline textbook, six, seven, eight, nine, what they're going to," Padres manager Andy Green said.

San Diego lost its second straight following a five-game winning streak. At 27 the oldest starter in a young rotation, Strahm entered with eight straight outings allowing two runs or fewer. He gave up four hits and three walks.

"I didn't have my changeup but I made the adjustment and finished strong," Strahm said.

SLUGGING

Frazier has four homers and 10 RBI in seven games after getting one RBI in his first 10 games following a sprained ankle. He made a mechanical adjustment after seeing a fan video posted on Instagram by koid24 on Instagram of an at-bat against Boston's Heath Hembree on April 17, even though Frazier took a called third strike.

"Just the swivel of my hand, If you see the circular movement that I'm repeating in the box. I'm trying to have that as done as early as I can before the pitcher comes at me. It helps my pitch recognition somehow," he said. "Kind of just like a `dig-me' video that I saw."

STREAKING

New York is trying to win nine straight series for the first time since 1998. San Diego has lost six straight games in the Bronx dating to 2004.

SEATS

A crowd of 46,254 was just New York's second home sellout.

TRAINER'S ROOM

Padres: INF Fernando Tatis Jr. (strained left hamstring) is hitting at extended spring training, and San Diego will decide in the next few days whether he needs a minor league rehab assignment. ... RF Franmil Reyes returned after missing two games with an injured shoulder sustained on a checked swing Friday. He allowed Cameron Maybin's eighth-inning single to skip off his glove for an error as Gleyber Torres scored.

Yankees: After going 2 for 7 with a home run in two games for Class A Tampa, SS Didi Gregorius is set to move to Triple-A Scranton/Wilkes-Barre on Tuesday as he nears a return from Tommy John surgery. ... Paxton (left knee inflammation) was cleared to pitch and could start Wednesday or Thursday in his first appearance since May 3. ... Sabathia (fluid drained from right knee) could start Sunday's series finale against Boston. ... Severino (right rotator cuff inflammation, strained lat muscle) planned to throw off flat ground Tuesday for the first time since April 6. ... RHP Dellin Betances (right shoulder impingement) threw off a mound for the first time since March 17, a 20-fastball bullpen session.

UP NEXT

RHP Masahiro Tanaka (3-3) has allowed one run or none in three straight starts going into Tuesday's outing for the Yankees against San Diego LHP Eric Lauer (3-4).