Sept. 4 (UPI) -- The United Nations General Assembly voted to back a Palestinian government without Hamas as part of a compromise.

The declaration was circulated at a conference from July 28 to 30, and "sets out an action-oriented pathway towards a peaceful settlement of the Israel-Palestine conflict and the realization of the two-state solution -- the vision of an independent state of Palestine living side by side with the state of Israel in peace and security, based on the pre-1967 borders." the U.N. said in a statement.

The so-called New York declaration was written by France and Saudi Arabia, The Guardian reported.

The declaration condemned the Oct. 7 attacks by Hamas and called for Hamas to release its hostages.

Related