Sale sounded upset with himself afterward.
"Even when I threw it on the mound, I was kind of like, 'Ohhhhh, that's not good.' So from the outside looking in, it doesn't look good at all. Like I said, I swear on everything I love, it was unintentional," he said. "Any time your teammates have something like that happen because of something you did, that's not fun.
"Obviously, I won't sit here and say (Putkonen's pitch) was intentional — maybe it got away from him as well — but you see something like that, and you kind of feel like an even bigger idiot, knowing that could have hurt him and done whatever, and that was because of me."
With the crowd booing, Ramirez hit a single to right field and then left the game himself because of cramping in his right leg.
Detroit center fielder Austin Jackson couldn't come up with Jeff Keppinger's sinking liner to start the sixth and was charged with an error. After a walk and a strikeout, Gordon Beckham singled and the 25-year-old Phegley followed with a grand slam in his 18th major league at-bat.
"Especially for Sale, we needed to get him a win," Phegley said. "He threw well and he deserved it."
Phegley is 4 for 20 now — with three homers.
Sale allowed 10 hits, walked two and struck out eight. He left in the seventh after allowing a double by Torii Hunter, and Matt Lindstrom came on and got Cabrera on a flyout.
Alejandro De Aza made it 6-3 with a homer in the eighth off Phil Coke. De Aza also hit a single and a double.
Ramirez opened the scoring in the first with an RBI double, but Matt Tuiasosopo put the Tigers ahead with a two-run homer in the second.
Cabrera's solo shot increased his RBI total to 94. He's the first player to reach 30 homers and 90 RBIs before the All-Star break, according to STATS. A pair of Cincinnati Reds — Tony Perez in 1970 and George Foster in 1977 — made it to 29 and 90.
NOTES: ... Chicago RHP Jake Peavy (fractured left rib) is scheduled for a rehab game Sunday with Double-A Birmingham at Huntsville. ... Detroit hosts Texas on Friday night, with RHP Doug Fister (6-5) taking the mound against RHP Justin Grimm (7-6) of the Rangers. The White Sox play at Philadelphia. Chicago LHP John Danks (2-5) takes on Philadelphia RHP Jonathan Pettibone (5-3).