US president Donald Trump said he would hold off on a fresh attack on Iran as long as a deal could be reached quickly to halt Iran's nuclear ambitions and reopen the Strait of Hormuz.

Iran and "other Middle Eastern Countries" asked for time to complete a deal that would lead to "the Immediate, Complete and Total" reopening of the Strait and "an end to Iran's nuclear threat," Trump wrote on his Truth Social platform.

"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."

Israel "joins me in this commitment," Trump wrote.

"Get to work, everybody, and get it DONE. Thank you for your attention to this matter! President DONALD J. TRUMP," the post read.