Eid al-Adha, or ‘the feast of the sacrifice’, is the second Eid festival of the calendar year, which honours Ibrahim’s commitment to God when ordered to offer up his only son - not named in the Qu’ran as Ismail but widely accepted in Islamic literature as so - as a sacrifice.

As he prepared to carry out the act, Satan appeared to Ibrahim attempting to deter him from his task, but the devout man threw stones to repel the devil.

At the last second, God sent the angel Jibra'il to replace the boy with a ram. In other versions of the story, the knife is flipped out of Ibrahim’s hand or copper appears over the boy’s throat, preventing the sacrifice.

Hajj 2017 Show all 16 1 /16 Hajj 2017 Hajj 2017 A Muslim pilgrim partakes in the symbolic stoning of the devil at the Jamarat Bridge in Mina, near Mecca, which marks the final major rite of the hajj Karim Sahib/AFP Hajj 2017 Muslim pilgrims take part in the symbolic stoning of the devil at the Jamarat Bridge in Mina, near Mecca, which marks the final major rite of the hajj Karim Sahib/AFP Hajj 2017 A Muslim pilgrim partakes in the symbolic stoning of the devil at the Jamarat Bridge in Mina Karim Sahib/AFP Hajj 2017 A Muslim pilgrim has his head shaven after throwing pebbles at pillars during the symbolic stoning of the devil Karim Sahib/AFP Hajj 2017 A Muslim pilgrim's head is shaved, after throwing pebbles at pillars during the symbolic stoning of the devil Karim Sahib/AFP Hajj 2017 A Saudi policeman spays Muslim pilgrims with water to cool them off near the Grand Mosque Karim Sahib/AFP Hajj 2017 Muslim pilgrims pray at Mount Arafat, southeast of the Saudi holy city of Mecca Bandar Aldandani/AFP Hajj 2017 Muslim pilgrims at the Grand Mosque Karim Sahib/AFP Hajj 2017 Iranian Muslim pilgrims wait at Jeddah airport in Saudi Arabia prior to the start of the annual Hajj pilgrimage in the holy city of Mecca Karim Sahib/AFP Hajj 2017 Muslim worshippers perform prayers around the Kaaba, Islam's holiest shrine, at the Grand Mosque in Saudi Arabia's holy city of Mecca Karim Sahib/AFP Hajj 2017 An Iranian Muslim pilgrim reads the Koran as she waits at Jeddah airport in Saudi Arabia, prior to the start of the annual Hajj pilgrimage in the holy city of Mecca Karim Sahib/AFP Hajj 2017 Saudi Red Crescent paramedics show the press their emergency equipment Karim Sahib/AFP Hajj 2017 Muslim worshippers perform prayers around the Kaaba, Islam's holiest shrine, at the Grand Mosque in Saudi Arabia's holy city of Mecca Karim Sahib/AFP Hajj 2017 Muslim worshippers perform prayers around the Kaaba, Islam's holiest shrine, at the Grand Mosque in Saudi Arabia's holy city of Mecca Karim Sahib/AFP Hajj 2017 Muslim worshippers walk around the Kaaba, Islam's holiest shrine, at the Grand Mosque in Saudi Arabia's holy city of Mecca Karim Sahib/AFP Hajj 2017 Muslim pilgrims sit around the Kaaba, the cubic building at the Grand Mosque, ahead of the annual Hajj pilgrimage in the Muslim holy city of Mecca Karim Sahib/AFP

Ibrahim, astonished to see his son unharmed, was praised for his devotion and willingness to surrender himself to Allah.

Eid al-Adha is one of the holiest celebrations in Islam and marks the end of the Hajj, the annual pilgrimage to the holy city of Mecca in Saudi Arabia which must be undetaken once in a lifetime all physically and financially capable Muslims.

Eid al-Fitr, which this year fell in June, is held to celebrate the end of the month-long fasting period of Ramadan.

When does Eid al-Adha begin?

Like other Islamic celebrations, Eid al-Adha by the lunar calendar, and always begins on the 10th day of Dhu al-Hijjah - known as Arafat Day, or the climax of the annual Hajj pilgrimage period. In the Gregorian system, the date can vary over a period of 11 days.

In 2017 the celebration begins on Friday 1 September, although in Muslim majority countries the public holiday often starts the day before. In Pakistan, the festival will start on Saturday 2 September. The date is set when the closest new moon is seen.

Iran: Thousands mourn victims of Hajj stampede

How long does it last?

Eid al-Adha is marked by a four or five day public holiday in most Muslim countries - although in Turkey and Qatar celebrations last for 10 days and in Saudi Arabia a whole fortnight.

A three day holiday is being held in Ghana, Nigeria and Uganda.

How is it celebrated?

Muslims put on smart clothes for morning prayers both before and after sunrise, which are followed by family meals and the exchanging of gifts.

In remembrance of the Ibrahim story, a goat or sheep is often slaughtered. One third of the meat is consumed by the family, another for friends and relatives and the last part for those in need.

The period is seen as an important time for charity work.