SEATTLE (AP) — When the time finally arrived for Félix Hernández to say goodbye to Seattle and all the history of 15 seasons with one franchise, his manager had a message as he walked off the mound.

"You will always be the king in this town," Scott Servais said to Hernandez as he took the ball.

With tears in his eyes, the emotional Hernández walked off the mound as a Mariner probably for the last time in his career on Wednesday night. He was the losing pitcher in a 3-1 loss to Oakland as the Athletics moved to the brink of clinching an AL wild-card berth.

It was his final start in his final year under contract with Seattle, the only place he's called home as a professional. Both sides seem ready for a separation, which turned the night into a farewell and thank you all wrapped into one.

He wasn't the "King Felix" of his dominant years on this night. He was a 33-year-old pitcher looking for one more magical outing to thrill the thousands of fans who turned out for his farewell.

"I didn't want to just give up five runs in five innings. I wanted to go out there and do my job and just give the team a chance to win," Hernandez said. "That was a fun night."

Unfortunately for Hernández (1-8), the A's have something to play for and weren't willing to go along with festivities. Oakland can clinch one of the two wild-card spots in the AL with a win or Cleveland loss on Friday.

Matt Olson had an RBI single in the first inning and Matt Chapman hit a two-run homer in the second. Sean Manaea (4-1) allowed one run in six innings and Liam Hendriks got his 25th save.

Even in the middle of a playoff race, the A's understood the magnitude of the night.

"That was awesome. I grew up watching him, definitely watched a lot of YouTube videos on him just trying to kind of do mechanics like him in my living room at the house," Manaea said. "Lot of memories watching him pitch, and seeing him walk off the mound like that was pretty incredible. I'm glad I got to watch that. It was really, really cool."

From the start, this night was a tribute to one of the Mariners' greats, who will be remembered in the same regard as Hall of Famer Edgar Martinez for his loyalty to the franchise and performance on the mound during his best seasons. He brought Seattle a Cy Young Award and a perfect game.

More so, Hernández had chances to leave and never did, which made the night so emotional.

"I was walking to the bullpen and my eyes started to (get) wet and I was like 'not right now.' It's hard to do it," Hernandez said. "There were a lot of emotions out there. I've been here for 15 years and there is a lot of stuff going on."

The 10,000 fans of the "King's Court," clad in yellow on three levels down the left-field line rose with every two-strike count, chanting, willing, hoping for a Hernández strikeout. It happened for the first time in the second inning when Sean Murphy went down swinging and Hernandez immediately pointed to his court, acknowledging their influence.

"To have the number of people come out and support him, (it's) unbelievable what it says to the fan base here and what it meant to Felix tonight. It was awesome," Servais said.

He repeated the act in the third inning on Chad Pinder's swinging strikeout to end the inning, and he got Seth Brown swinging for the second out of the fifth with two runners on.

Hernández walked Jurickson Profar on his 100th pitch of the night to load the bases. Servais made a quick visit to the mound to a chorus of boos hoping to see Hernández at least finish the inning. Hernandez stayed but his 101st pitch was a deep line drive off the bat of Pinder. Left fielder Dylan Moore raced back and made a leaping, sprawling grab to end the inning.

It didn't change the final outcome. But it made Hernández's final line look better and gave everyone in the ballpark an extra highlight to a memorable night.

Hernández took the mound for the sixth and got Robbie Grossman to fly out to center field. That was it. Servais came to the mound and gave Hernández a hug. He exchanged a long hug with Kyle Seager, his longest teammate with the Mariners, gave a round of hugs to the rest of the infielders and walked off with tears in his eyes.

He pointed around the stadium, came out for a curtain call took a bow and tapped his heart.

After the final out, he put on one of the yellow "King's Court" shirts and went down to shake hands, wave to fans in "his" cheering section and pose for pictures.

"It was the best section in baseball and today it was rocking. It was popping. It was good," Hernandez said.

NEXT SEASON

Hernandez reiterated he would like to continue playing but it all depends on if he gets an offer.

"You see me pitch today. I think I can go out there and compete," he said.

KINGLY NUMBERS

Hernández is Seattle's all-time leader in wins (169), strikeouts (2,524), innings (2,729 2/3), quality starts (258) and games started (418). He's also one of two players to have played at least 15 seasons with the Mariners, joining Martinez who spent 18 seasons with Seattle. He made his debut at 19 and, despite his brilliance, never made it to the postseason.

TRAINER'S ROOM

Athletics: Oakland got a boost by activating OF Stephen Piscotty off the 10-day injured list on Thursday after missing more than a month with an ankle injury. The A's hope to get Piscotty a handful of at-bats this weekend. ... Manager Bob Melvin said Mark Canha was feeling better after leaving Wednesday's game against the Angels early due to a groin strain. Canha did some running before the game and was day-to-day.

UP NEXT

Athletics: RHP Mike Fiers (15-4, 3.91) makes his final start before a potential wild-card game. Fiers already has a career-high in wins, but has a 6.68 ERA in his past seven starts.

Mariners: LHP Justus Sheffield (0-1, 6.10) makes his seventh and final start. He's lasted only 4 1/3 innings in each of his past two starts.

More From 1460 ESPN