SAN DIEGO (AP) -- After the Padres had given Andrew Cashner the lead, he wasn't about to come out of the game.

When interim manager Pat Murphy paid a visit to the mound after a leadoff triple in the seventh, Cashner and his teammates told Murphy the game belonged to the right-hander.

Backed by home runs from Matt Kemp, Yonder Alonso and Brett Wallace, Cashner rewarded his manager's decision by getting out of the jam and turning in seven solid innings in San Diego's 3-1 victory over the Miami Marlins on Friday night.

More from FoxSports

When Cole Gillespie tripled leading off the seventh, Murphy popped out of the dugout right away. But before he reached the mound, Cashner was already lobbying to stay in the game.

"I just didn't want him to make the call yet because I felt like I could get out of it," Cashner said. "It was a big spot in the game."

After getting a foul pop out and a grounder back to the mound, Cashner (4-10) hit pinch-hitter Derek Dietrich before he retired Ichiro Suzuki on a line drive.

"When I went out in the seventh he looked me right in the eye and said, `I got this. I'm telling you, I got this.'" Murphy said. "I went out there with the intent to see really how he was and see how he would react to me coming out there."

San Diego infielders were very vocal with Murphy as well as Cashner.

"When he came out, Cash wanted to stay in there and we had his back," Alonso said. "We just let him know we had his back and it was his game."

Wallace hit his first homer with San Diego leading off the fourth to tie the game at 1-all. Alonso and Kemp hit back-to-back homers on consecutive pitches in the fifth to make it 3-1. All the homers came off Dan Haren (7-6).

"It was very frustrating," Haren said. "The Alonzo pitch I was OK with, it was a split but it was not my best pitch. The one I was most upset about was the one to Kemp. I just lost my focus there for a second and left one right middle up out over the plate."

Cashner allowed a first-inning RBI double by Justin Bour, then clamped down on the Marlins as he ended their season-best three-game road win streak.

Joaquin Benoit pitched the eighth and Craig Kimbrel got the final three outs, including retiring Suzuki on a grounder for the final out with runners on first and second. It was Kimbrel's 27th save in 28 chances.

Cashner hadn't pitched since July 8 because his last start on Sunday was rained out after he threw 4 2-3 innings. Cashner, who lost eight of his previous 10 decisions, gave up five hits, struck out five and walked one.

The back-to-back homers marked the first time the Padres have done that since July 27, 2013, at Arizona.

Kemp, who also had a double, continued his recent hot streak. Over his last 12 games, Kemp is hitting .386 (15 for 44) with five homers, six doubles, 11 RBIs and seven multi-hit games.

The Padres snapped a three-game losing streak during which they were outscored 20-4 and had just 13 hits.

Haren allowed three runs and eight hits over six innings. He has given up five home runs in his last two starts after having allowed just two homers over a five-game stretch.

Haren has one win over his last nine starts.

MR. DEPENDABLE

With his 20th start of the season Friday night, Haren has made 20 or more starts in 11 consecutive seasons. It's the longest active streak in the majors.

NORRIS' SLUMP DEEPENS

Padres C Derek Norris does not have an RBI since June 28, a string of 58 at-bats. San Diego is 20-6 in games when Norris has an RBI.

HOMERS HAPPEN

With the three homers allowed Friday night, Haren ran his season total to 20. Since 2005, Haren's first full season in the majors, he has allowed 20 or more home runs in 10 out of 11 seasons.

TRAINER'S ROOM

Marlins: RF Giancarlo Stanton (left wrist fracture) has begun dry hitting. ... 2B Dee Gordon (dislocated left thumb) is still on schedule to take batting practice this weekend at the team's training camp facility at Jupiter, Florida.

Padres: LF Justin Upton (strained side muscle) returned to the starting lineup after missing fourth consecutive games.

UP NEXT

Marlins: Not only is RHP David Phelps (4-6, 3.91 ERA) pitching against San Diego for the first time, he has only faced two Padres: Melvin Upton Jr. and Derek Norris (3 ABs each).

Padres: RHP Ian Kennedy (5-9, 4.78) has continued to improve in his last six starts. Although his record in that stretch is only 2-4, his ERA is 2.97 despite allowing eight homers.