President Donald Trump called out former President Barack Obama Wednesday for sending billions of dollars to Iran the same day that American hostages were released.

WATCH:

During a rally in Minnesota, Trump touted his meeting with North Korean dictator Kim Jong Un and knocked the media for changing their tone on the Singapore summit.

“Very interestingly, at first everybody was amazed that we had the meeting. They couldn’t believe it. The first 24 hours, they said, ‘I can’t believe it.’ They said, ‘they are going to meet,'” Trump said. “They said ‘what’s the big deal with the meeting, what’s the big deal.’ In other words, their bosses said, you can’t say that.”

Then the president noted that he was able to get several American hostages released before even having the meeting, while Obama sent nearly $1.8 billion to Iran the day those hostages were released.

“We got back our hostages. And I didn’t pay $1.8 billion to get back our hostages,” he said to crowd applause.

Follow Amber on Twitter