In a post on Truth Social Trump said the emerging deal "would include the Immediate, Complete, and Total OPENING OF THE HORMUZ STRAIT, and an end to Iran's nuclear threat".
"Based on this request, I have agreed, for the future benefit of the WORLD and, likewise, the survival of a successful and prosperous Iran, to cancel the attack, subject to being able to rapidly make a DEAL," Trump said.
He added that Israel had agreed to join the US in the commitment to try to complete the agreement with Iran that would bring about an end to the war.
The breakthrough comes after Saudi Crown Prince Mohammed bin Salman, the kingdom's de facto leader, in a phone call with Trump raised concerns about the US escalating the conflict with Iran, according to a person familiar with the leaders' discussion.
The discussion, which was first reported on by the news outlet Axios.
The Saudis, according to the person briefed on the substance of the call but not authorised to comment publicly, are concerned that if the US targets Iran's energy infrastructure or carries out massive strikes on other key infrastructure that Tehran could respond by carrying out attacks on the kingdom's and other Gulf countries' energy infrastructure.
The crown prince during Saturday's call sought clarity from Trump on what potential new action he's weighing to take against Iran, the person said.
A White House official, who was not authorised to comment publicly and requested anonymity, confirmed the leaders spoke on Saturday but did not offer any detail about the substance of their conversation.
Saudi Arabia earlier this week joined the US in striking multiple logistics and weapons sites used by Iranian-backed militias in Iraq, but has been urging the US and Iran to get back to the negotiating table to find an endgame to the five-month old conflict.