Outgoing UN Ambassador Nikki Haley broke with President Trump’s views on the murder of Jamal Khashoggi in an interview that aired Wednesday, blaming Saudi Crown Prince Mohammad bin Salman for the dissident journalist’s death.

“It was the Saudi government, and MBS is the head of the Saudi government,” Haley told NBC’s “Today,” referring to the prince, the kingdom’s de facto leader, by his initials.

“So they are all responsible, and they don’t get a pass, not an individual, not the government — they don’t get a pass,” she said.

The CIA believes the death of Khashoggi, who had criticized the repressive monarchy, was a hit carried out inside the Saudi consulate in Istanbul, Turkey, at the behest of the crown prince.

And yet Trump has decided to stand by bin Salman, saying arms and other trade deals with Riyadh were too valuable to the US for him to take a hard line on the Saudis.

Haley, 46, stopped short of recommending anything more than just stern words aimed at the Saudis, saying they were helping the US defeat insurgents in Yemen, Hezbollah militants in Lebanon and “Iranian proxies” around the globe.

“We do have to work with them in that case,” she said of the Saudis. “I think we need to have a serious hard talk with the Saudis to let them know we won’t condone this. We won’t give you a pass. And don’t do this again.

“And then I think that the administrations have to talk about where we go from here. What I can tell you that’s so important is that the Saudis have been our partner in defeating and dealing with Iran. And that has been hugely important.”

Haley, whose resignation was announced by the president in October, also said she has used Trump’s “unpredictable” behavior to help her on the international stage.

“He would ratchet up the rhetoric, and then I’d go back to the ambassadors and say: ‘You know, he’s pretty upset. I can’t promise you what he’s going to do or not, but I can tell you if we do these sanctions, it will keep him from going too far,'” Haley said.

“I know all of it,” she said in response to a question about Trump’s bombastic public statements and Twitter tirades, which are often riddled with falsehoods. “But I’m disciplined enough to know not to get into the drama.”

At the United Nations, “I was trying to get the job done,” she added. “And I got the job done by being truthful, but also by letting him be unpredictable and not showing our cards.”

The former South Carolina governor said that, in general, she was aware that some people believe that she and the president aren’t always on the same page — but that’s only because “our styles are very different.”

“And, you know, I’ve always found that funny,” she said. “But the truth at the end of the day is I may be harder on some things or I may be tougher in some ways, but I’ve never strayed from where the president was or never strayed from where his policy wants to go.”

Haley also acknowledged Washington’s complicated relationship with Moscow.

“Friend or foe?” NBC host Craig Melvin asked about Russia.

“Depends on the day,” Haley replied.

“You’ve been more critical, arguably, than any other voice in the administration of Russia,” Melvin said.

“I’m critical when it’s warranted,” Haley said. “The United States wants a relationship with Russia. But as long as they keep doing the actions that they’re doing, they’re making it impossible.

“You can’t go poison someone in another country, like they did with the Skripals, and get a pass,” she said. “You can’t go and invade Ukraine and think the rest of the world’s not going to notice.”

British officials have accused Russian President Vladimir Putin of ordering the assassination of Sergei Skripal, a former Russian agent living in the UK who survived a March attack, as did his daughter, Julia, who also was poisoned.

The UN ambassador shot down speculation that she might seek a White House run in 2024, saying that she and her husband, Michael, haven’t discussed a run for the presidency.

“I can promise you Michael and I have never talked about running for president, what that would look like, anything like that, because our lives have been such a fun surprise,” Haley said.

As for Heather Nauert, the former “Fox & Friends” anchor and State Department spokeswoman whom Trump tapped to succeed Haley at the UN, Haley said that while “I want her to be successful,” only time will tell whether her appointment was a good one.

“I think that we should give her the opportunity to prove to the American public what she can do,” she said. “I think that she has been working at the State Department on multiple issues for a long time.”

Haley has said she plans to live in New York City for the next two years as her son finishes high school and that she possibly will pen a second book, according to the Greenville News of South Carolina.

“The only decision I’ve made right now is that I’m looking forward to sleeping in,” she said.