Elephant’s refusal to attack

When morning came, Abrahah prepared to enter the sacred city of Makkah. He prepared the elephant named Mahmud. He mobilized his army, and they turned the elephant towards the Ka’bah. At that moment Nufayl bin Habib approached it and stood next to it, and taking it by its ear, he said, “Kneel, Mahmud! Then turn around and return directly to whence you came. For verily, you are in the Sacred City of Allah (subhanahu wa ta’ala).” Then he released the elephant’s ear and it knelt, after which Nufayl bin Habib left and hastened to the mountains.

Abrahah’s men beat the elephant in an attempt to make it rise, but it refused. They beat it on its head with axes and used hooked staffs to pull it out of its resistance and make it stand, but it refused. So they turned him towards Yemen, and he rose and walked quickly. Then they turned him towards Ash-Sham and he did likewise. Then they turned him towards the east and he did the same thing. Then they turned him towards Makkah and he knelt down again.

Allah’s (subhanahu wa ta’ala) hidden mercies to the Quraysh:

When Allah (subhanahu wa ta’ala) sent Muhammad (sallallahu alaihi wasallam) with the Prophethood, among the things that he used to recount to the Quraysh as blessings that Allah (subhanahu wa ta’ala) had favored them with of his bounties, was his defending them from the attack of the Abyssinians. Due to this they (the Quraysh) were allowed to remain safely in Makkah for a period of time.