U.S. President Donald Trump on Thursday blasted Iran for not "living up to the spirit" of the nuclear deal it reached in 2015 with world powers.

"I don't think Iran is in compliance. I don't think they're living up to the spirit of the agreement," Trump told reporters at his golf club retreat in New Jersey.

“President Obama in his wisdom gave them $150 billion. He gave them $1.8 billion in cash. That’s a hard one to figure. But that was his decision. I think it’s a horrible agreement,” he continued.

“I think you’ll see some very strong things taking place if they don’t get themselves in compliance,” warned Trump.

The comments are in line with what Trump said of the Iran during his presidential campaign. After he was sworn in as president, Trump described the nuclear deal as “the worst deal I’ve ever seen negotiated” and accused the Islamic Republic of “disrespecting” the United States because of the deal.

While Trump's administration recently confirmed that Iran is adhering to the nuclear agreement it signed with world powers in 2015, Trump and other officials in the administration have stressed that the President has reservations about the deal.

Several weeks ago, Trump warned Iran to adhere to the terms of the nuclear deal with world powers or "there will be big, big problems" for Tehran.

While lifting nuclear-linked sanctions, the United States maintains sanctions related to Iran's ballistic missile program, human rights record and its support for international terrorism.

Last week, Trump signed into law a bill that imposes new sanctions on Iran, as well as on Russia and North Korea.

Tehran, which says the sanctions violate the terms of the nuclear agreement, has vowed an "appropriate and proportional" response to them.