A U.S. -drafted resolution championed by U.S. Ambassador Nikki Haley won 87 votes in the General Assembly, falling short of the two-thirds majority required for adoption.
In the end, 87 countries voted in favor, but was not enough to meet the two-thirds requirement, so the proposal failed.
Sami Abu Zahri, a spokesman for Hamas, the militant group that has ruled the Gaza Strip since 2007, wrote on Twitter after the vote: "The failure of the American venture at the United Nations represents a slap to the U.S. administration and confirmation of the legitimacy of the resistance".
But diplomats said the USA draft resolution was unlikely to win the two-thirds majority required for adoption in the 193-nation assembly.
But before the vote on the US draft resolution, Bolivian Ambassador Sasha Llorentty Soliz withdrew the amendment.
Iran's Deputy UN Ambassador Eshagh Al Habib accused the United States of trying to deflect the attention of the world from the root causes of the conflict and said "we recognize Hamas as a legitimate resistance movement fighting for the liberation of Palestinian territory from foreign occupation".
Danon said he has had discussions with some of the Arab ambassadors in the United Nations, and they are unhappy with the support Hamas is getting from Tehran, and the fact that the PA is cooperating with Iran, seen by some of these countries - such as Saudi Arabia - as their mortal enemy.
But before the vote on the US draft resolution, Bolivian Ambassador Sacha Llorenty Soliz withdrew the amendment. Never. Over  resolutions condemning Israel and not one single resolution condemning Hamas.
Trump announces nominations for attorney general, United Nations ambassador
As the top U.S. law official at that time , he oversaw Robert Mueller, who was then leading the department's criminal division. He is now a lawyer at Kirkland & Ellis and does work advising corporations on government enforcement and regulatory actions.
It was the first-ever proposed resolution condemning Hamas to be presented to the 193-nation assembly. This is a very important achievement for the USA and Israel.
The results of a vote are seen on display boards at the General Assembly hall, on December 21, 2017, at UN Headquarters in NY. Support from the Arab states is considered crucial to getting it launched, and the United Nations vote suggests it might get a standoffish reception. The people who have suffered by far the most because of Hamas are the Palestinian people.
Before the final vote, Haley reminded the chamber that last Friday the General Assembly voted six times in one day to condemn Israel.
The European Union, like the United States, considers Hamas a terror group.
Diplomats from nine Arab countries were sent letters by Jason Greenblatt, the White House envoy who is working with Jared Kushner, Trump's son-in-law and adviser, on the administration's peace proposal.
In this file photo taken on June 13, 2018 Israel's Ambassador to the United Nations Danny Danon speaks to the General Assembly.
Israel captured Gaza in the 1967 Middle East war but withdrew in 2005, while holding onto most of the separate West Bank, where Palestinians have limited self-rule.
"The UN has a chance to condemn Hamas for the first time", Haley tweeted Thursday.
But after a procedural move by Kuwait and Bolivia, the body adopted a rule that meant the resolution needed a two-thirds majority to be adopted.
- Trump Opens Fire On Mueller, Comey As New Revelations Expected Today
- Alabama's Tua Tagovailoa wins Walter Camp, Maxwell awards
- House Democrat seeks emergency hearing on North Carolina election
- Russian Military Tracks US Destroyer in Sea of Japan - MoD
- Former light heavyweight world champion Adonis Stevenson had emergency brain surgery
- Santiago Solari praises out of favour Isco after Copa del Rey double
- Deontay Wilder: Team Joshua must have 'thrown up' watching Fury fight
- Withdrawing US, NATO Troops From Afghanistan Risks '9/11' Recurrence - Pentagon
- Tyler Perry Just Paid Off 2 Walmart Layaway Departments in Atlanta
- Former Cubs infielder Luis Valbuena killed in a auto accident in Venezuela