Rival Palestinian factions Hamas and Fatah have reached an agreement after talks held since Tuesday in the Egyptian capital of Cairo.
"Fatah and Hamas reached an agreement at dawn today upon a generous Egyptian sponsorship", Haniyeh said in a statement.
Palestinian media outlets have said that the two factions would hold a news conference later Thursday in Cairo to announce the details of the agreement.
Cairo is now leading efforts to heal a political split between Gaza-based Hamas group and the West Bank-based Fatah movement.
The move had been a key demand of Palestinian President Mahmoud Abbas whose Fatah-dominated Palestinian Authority controls the West Bank.
He added that all Palestinian factions would begin wider negotiations on the formation of a national unity government in the coming two weeks.
But both sides hope that the deal's proposed deployment of security personnel from the Fatah-led Palestinian Authority to Gaza's borders will encourage Egypt and Israel to ease their tight restrictions at border crossings, a badly needed step to help Gaza revive its economy and improve the living standards of its two million residents.
The latest reconciliation efforts come as US President Donald Trump has sought to revive peace talks between Israel and the Palestinians and met separately with Abbas and Netanyahu on the sidelines of the United Nations General Assembly in NY last month.
Hamas announced last month that it was handing over administrative control of the Gaza Strip to a unity government headed by Palestinian Prime Minister Rami Hamdallah.
According to BBC, Egypt has been brokering reconciliation talks in Cairo.
"The sides will discuss the security issue, especially in Gaza, in the way that serves the home front, enforces the rule of law in a professional and national way and is not factional", said Hamas spokesman Fawzi Barhoum.
Previous attempts at reconciliation have repeatedly failed, and many analysts are treating the latest bid with caution, waiting to see if actual change will occur on the ground in Gaza.