WASHINGTON — President Trump veered off script Sunday and called out “Islamic terror” in his high-profile Saudi Arabia speech — not on purpose, but out of exhaustion, a White House aide said.

“He’s just an exhausted guy,” the official told reporters on background, The Hill reported.

The White House had planned to avoid Trump’s highly charged campaign rhetoric of ending “radical Islamic terror” in his first foreign policy speech abroad.

His prepared remarks struck a much softer tone in asking for Arab leaders to confront the crisis of “Islamist extremism.”

But Trump veered from his Teleprompter during the 33-minute address when he arrived at that section of the speech. Instead, Trump said leaders must confront the crisis of “Islamic extremism and the Islamists and Islamic terror of all kinds.”

In an otherwise carefully read speech, the detour led pundits to believe Trump was not ready to fully discard the more charged terms — especially since he routinely blasted President Obama and Hillary Clinton for not using the words “radical Islamic terror.”

The Democrats sought to avoid casting the religion in derogatory terms, but rather focus on individual terrorists.

But the White House said Sunday that Trump had meant to stay on script, but the toils of travel caused the slip-up.

Additionally, the White House dispatched daughter Ivanka Trump to speak in the president’s place at a social media Tweeps forum slated to be his final stop in Saudi Arabia after the president’s itinerary ran behind schedule.