An agreement with Abbas was to have been reached to stop Abbas’s call for new elections. On 20 October 2006, on the eve of this deal to end factional fighting between Fatah and Hamas, Haniyeh’s convoy came under gunfire in Gaza and one of the cars was set on fire. Haniyeh was not hurt in the attack. Hamas sources said that this was not an assassination attempt. Palestinian Authority security sources reported that the attackers were the relatives of a Fatah man killed by clashes with Hamas.
During the simmering Fatah–Hamas conflict, on 14 December 2006, Haniyeh was denied entry to Gaza from Egypt at the Rafah Border Crossing. The border crossing was closed by order of Israeli Minister of Defence, Amir Peretz. Haniyeh was returning to Gaza from his first official trip abroad as prime minister. He was carrying an estimated 30 million USD in cash, intended for Palestinian Authority payments. Israeli authorities later stated that they would allow Haniyeh to cross the border provided he left the money in Egypt, which would reportedly be transferred to an Arab League bank account. A gun battle between Hamas militants and the Palestinian Presidential Guard was reported at the Rafah Border Crossing in response to the incident.