June 9 (UPI) -- Slugger Aaron Judge said a jab aimed at the New York Yankees from the Boston Red Sox's Hunter Dobbins was on his mind just before he crushed a fastball from the right-handed pitcher for a 436-foot, first-inning homer.

Judge commented on the insult and his two-run shot after the Red Sox beat the Yankees on Sunday in New York. Judge went 3 for 4 with two home runs, four RBIs, three runs scored and a walk in the 11-7 setback at Yankee Stadium.

Dobbins told the Boston Herald on Saturday he would rather retire from baseball than play for the Yankees. The eighth-round pick by the Red Sox in the 2021 MLB Draft made his MLB debut in April. He grew up watching the Red Sox and said he formed "disdain for the Yankees."

"My dad was a diehard Red Sox fan," Dobbins said. "And I've said it before, that if the Yankees were the last team to give me a contract, I'd retire."

Judge said ESPN's Eduardo Perez told him about Dobbins' comment before Sunday's series finale.