David Ortiz’s wife on Thursday praised the “quick thinking” of a friend who rushed the former Red Sox star to the hospital in a Rolls-Royce after he was shot in a botched hit job at a Dominican Republic bar.

“I want to take this opportunity to offer our heartfelt thanks and gratitude to Eliezer Salvador, owner of Presidente Sports, for your quick thinking and swift action on Sunday night,” Tiffany Ortiz said in a statement.

“Your heroism and selflessness were the first steps to ensuring David could get the urgent care he required. For that, we are eternally grateful.”

Salvador was with the baseball legend known as “Big Papi” at a bar in Santo Domingo Sunday evening when a gunman jumped off a motorcycle and blasted a bullet into Ortiz’s back.

Salvador hauled Ortiz into his ritzy car — and smashed into other vehicles to get away before flooring it to the emergency room at 120 miles an hour, he told the Boston Globe.

“I hit the front, I hit the back, to open up space,” he told the paper.

“I told him, ‘You don’t die on me.'”

Ortiz spent six hours in surgery in the DR, where doctors had to remove parts of his intestines, colon and gallbladder.

“To the amazing surgeons, medical team, and staff at the Abel González Clinic in the Dominican Republic, there are no words to express our gratitude for the amazing care you provided,” Tiffany Ortiz said.

He was flown to Massachusetts General Hospital in Boston on Monday and underwent a second surgery, and is still recovering in intensive care.

“David remains in guarded condition in the surgical intensive care unit following his second surgery. He continues to heal and make progress. David will continue to recover in the ICU and future updates on his condition will be provided when necessary,” she said.

Dominican authorities revealed Wednesday that they’ve detained six suspect in the shooting — including the alleged gunman — which they say was an attempted hit job carried out for a promised $8,000. They still haven’t provided a possible motive.