A cease-fire agreement has been reached to end fighting in the Libyan capital of Tripoli during the upcoming Islamic holiday of Eid al-Adha.

Libyan National Army (LNA) chief Khalifa Haftar agreed to the United Nation’s-proposed cease-fire Saturday, his spokesman, Ahmad al-Mesmari, said at a news conference in Benghazi.

Libya’s U.N.-supported government said earlier Saturday it had accepted the proposed cease-fire for the holiday, which begins Sunday.

Militias allied with the government have been fighting since April against an LNA campaign to seize the capital.  

More than 1,000 people have been killed in the fighting, according to the World Health Organization. More than 120,000 others have been displaced.