Hernandez (3-2) allowed just two runs on four hits over seven innings to pick up the win, the 146th of his career, and move past Jamie Moyer for most in franchise history.
"It means a lot," Hernandez said. "It's an honor to be on top of that list. I'm happy for that. It was a great team effort, great win for us."
King Felix improved to 8-0 with a 1.67 ERA and 80 strikeouts in 11 starts against Tampa Bay at Safeco Field, including the 23rd perfect game in history in 2012. He is 8-2 in his career against the Rays with a 1.94 ERA and hasn't taken a loss against them since Aug. 19, 2011.
"He's gone through a lot in his career. It was great to see him achieve it tonight," manager Scott Servais said.
He might not have without Marte's career night. He went 4-for-5 with two doubles, three RBIs and three runs scored.
"Huge game. That's about all you can do in a baseball game," Servais said.
With the game tied at 2 in the sixth inning, Marte hammered the first offering from reliever Geltz over the right-field wall to give the Mariners a 5-2 cushion.
"I was looking for that fastball," Marte said. "I just tried to put my good swing, and you see what happened, I got the homer."
The Mariners were 0-for-9 with runners in scoring position before Marte's homer, his first of the season. His three RBIs matched a career high.
"It took us to his third at-bat to figure out it didn't matter where the heater was, he was getting to it," Rays starter Matt Moore said.
Seattle left runners stranded on second and third base in each of the first two innings.
Marte doubled to lead off the third inning and advanced to third on a groundout by Robinson Cano. Marte beat a strong throw home from Kevin Kiermaier to score the first run of the game on Nelson Cruz's sacrifice fly.
"Marte is probably the only guy on our team that scores on that throw," Servais said.
Marte scored on a wild pitch from Moore to tie the game at 2 in the fifth inning.
Mariners: RHP Taijuan Walker is expected to be fine for his next start Wednesday against Tampa Bay. Walker left his last start after two innings due to neck spasms. The issue has subsided in recent days, and he was able to throw his normal bullpen session Monday. ... RHP Joaquin Benoit was expected to throw a light bullpen session Monday as he works back from inflammation in his right shoulder. Benoit was placed on the 15-day disabled list April 25 and became eligible for reinstatement Saturday.
Rays: 2B Logan Forsythe left the game in the third inning and was replaced by Tim Beckham. Forsythe was hit by Hernandez's pitch in the top of the third and remained in the game for baserunning purposes. However, when it came time to take the field, he returned to the dugout with a bruised shoulder. X-rays were negative, and he's considered to be day-to-day.
Mariners: Wade Miley (2-2, 4.74 ERA) will make his seventh start this season Tuesday against Tampa Bay. Miley had a no-decision in his last outing, a 6-3 win at Houston. Miley allowed two runs on five hits over six innings. Miley was 1-2 with a 3.09 ERA in five starts against Tampa Bay in 2015 while with Boston.
Rays: Drew Smyly (1-3, 2.72 ERA) had his shortest outing of the season last time out against the Los Angeles Dodgers. Smyly took a no-decision after allowing just two runs on five hits over five innings. Smyly has allowed two earned runs or fewer in five consecutive starts.
Pinder delivers timely hit, A's advance in playoffs at last
The Oakland Athletics ended 14 years of postseason futility, riding Chad Pinder's go-ahead, two-run single in the fifth inning and repeated costly walks by Chicago's relievers to rally past the White Sox 6-4 on Thursday and win the decisive third game...
MLB playoffs 2020 -- Wild Card Thursday takeaways from day of elimination games
Atlanta's pitching again proved too much for Cincinnati's bats to handle, plus Oakland triumphed in a winner-take-all showdown against Chicago.
2020 MLB playoffs: Schedules, postseason bracket, analysis and updates
All the latest information about the expanded baseball postseason.
2020 MLB playoffs: Three questions for Chicago White Sox after being eliminated from postseason
Here's what's next for Chicago after losing the first winner-take-all matchup in franchise history.
Hall of Famer Johnny Bench to auction memorabilia in Louisville
The recent deaths of baseball greats Lou Brock, Tom Seaver and Al Kaline got Johnny Bench thinking about the future and the prospect of unloading memorabilia from his Hall of Fame career.
Houston Astros ace Justin Verlander has Tommy John surgery
Houston Astros general manager James Click said Thursday that Justin Verlander underwent Tommy John surgery on Wednesday and that the estimated recovery time is about 12-14 months.