President Trump on Wednesday threatened to cut foreign aid to countries that vote in the UN for a resolution condemning his decision to recognize Jerusalem as the capital of Israel.

“I like the message that Nikki sent yesterday at the United Nations for all of these nations that take our money and then they vote against us at the Security Council, or they vote against us potentially at the [General] Assembly,” he said about US Ambassador to the UN Nikki Haley.

She had said a day earlier that the US would be “taking names” of countries that voted for the resolution.

“They take hundreds of millions of dollars and even billions of dollars, and then they vote against us. Well, we’re watching those votes. Let them vote against us, we’ll save a lot. We don’t care,” Trump said during a cabinet meeting at the White House.

The president contended that American officials don’t even know what foreign countries do with the money the US sends them.

“This isn’t like it used to be where they could vote against you, and then you pay them hundreds of millions of dollars and nobody knows what they’re doing. So, Nikki, that was the right message that you and I agreed to be sent yesterday.”

Trump then said he’s gotten nothing but positive feedback on the tough stance.

“And I’ve had a lot of good comment on it, believe me. People are tired of the United States — the people that live here, our great citizens that love this country — they’re tired of this country being taken advantage of, and we’re not going to be taken advantage of any longer,” he declared.

The General Assembly is scheduled to vote Thursday on a resolution condemning Trump’s recognition of Jerusalem.

The US on Monday had vetoed a resolution in the Security Council that called for Trump to reverse his decision, a measure introduced by Egypt that the council voted 14-1 to support.

The US for decades has given billions to Egypt in military and other aid.

Trump, in a move aimed at pleasing Israel and his evangelical base, announced that the US would recognize Jerusalem rather than Tel Aviv as the capital, and build an embassy there over the coming years.