DUBAI, United Arab Emirates>> President Donald Trump sent a letter to Iranian Supreme Leader Ali Khamenei, seeking a new deal with Tehran to restrain its rapidly advancing nuclear program and replace the agreement he withdrew America from in his first term in office.

Iranian state media immediately picked up on Trump’s acknowledgment, given in excerpts from a Fox Business News interview that aired Friday, although there was no confirmation from Khamenei’s office that any letter had been received. The interview airs in full Sunday.

It remained unclear how the 85-year-old supreme leader would react, given that former President Barack Obama had kept his letters to Khamenei secret before the start of negotiations that led to Tehran’s 2015 deal with world powers.

In comments to reporters in the Oval Office later Friday, Trump did not mention the letter directly but made a veiled reference, saying, “We have a situation with Iran that, something’s going to happen very soon. Very, very soon.”

“Hopefully we can have a peace deal,” Trump said. “I’m not speaking out of strength or weakness. I’m just saying I’d rather see a peace deal than the other. But the other will solve the problem.”

He has suggested that the alternative to a negotiated resolution would be the U.S. threatening to intervene militarily in Iran.

Trump’s overture comes as Israel and the United States have warned they will never let Iran acquire a nuclear weapon, leading to fears of a military confrontation as Tehran enriches uranium at near-weapons-grade levels — something only sought by atomic-armed nations.

In the Fox Business interview, Trump said, “I’ve written them a letter saying, ‘I hope you’re going to negotiate because if we have to go in militarily, it’s going to be a terrible thing.’ ” He said he had sent the letter Thursday.

The White House confirmed that Trump’s letter to Iran’s leaders is seeking to negotiate a nuclear deal. The president’s comments in the Oval Office echoed his sentiments from the interview, which was taped Thursday.

“I would rather negotiate a deal. I’m not sure that everybody agrees with me, but we can make a deal that would be just as good as if you won militarily,” Trump said in the interview. “But the time is happening now. The time is coming up. Something’s going to happen one way or the other.”

“I hope you’re going to negotiate, because it’s going to be a lot better for Iran. And I think they want to get that letter,” he added. “The other alternative is we have to do something, because you can’t let them have a nuclear weapon.”

Trump offered no details of what, if anything, was specifically offered to Iran in the letter.

The move recalled Trump’s letter-writing to North Korean leader Kim Jong Un in his first term, which led to face-to-face meetings but no deals to limit Pyongyang’s atomic bombs and a missile program capable of reaching the continental U.S.

Iran long has maintained its program is for peaceful purposes, even as its officials increasingly threaten to pursue the bomb as tensions are high with the U.S. over its sanctions and with Israel as a shaky ceasefire holds in its war against Hamas in the Gaza Strip.

U.S. intelligence agencies assess that Iran has yet to begin a weapons program, but has “undertaken activities that better position it to produce a nuclear device, if it chooses to do so.”