One day the Holy Prophet (S) was walking through Mecca accompanied by his cousin, Ali Ibn Abi Talib (a.s.). Abu Lahab, the Prophet’s uncle was throwing stones from the back and shouting: O people of Quraish, he is a sorcerer and a liar. Drive him away, shun him and avoid his magic. In this way, he instigated the Quraishites to harass them and those evil ones started pelting stones at them. The stones they threw at His Eminence (S) also hit Ali (a.s.). One of the mischief-makers shouted: O Ali (a.s.)! Are you a follower of Muhammad (S)?
You are not so brave to fight. Besides in your youth no one is like you, so why not join the fight? Why don’t you help Muhammad (S)? Why don’t you save him? Ali (a.s.) said to those accursed people: O unfortunate Quraish! I am such an obedient one of His Eminence (S) that I never disobey him. If he commands, I can show you miracles.
Thus they all continued to follow them till His Eminence (S) and Ali (a.s.) came out of Mecca. By the power of Allah, the rocks of the mountain started rolling down automatically to His Eminence (S). Seeing this, they said to each other: Now these rocks will fall on Muhammad and Ali and kill them and we shall be rid of them. At last the people moved aside, lest the rocks may fall on them.
Then they saw that the rocks came to Muhammad and Ali (a.s) and each of the stones called out: Peace be on you O Muhammad Ibn Abdullah Ibn Abdul Muttalib Ibn Hashim Ibn Abde Manaf – Peace be on you, O Ali Ibn Abi Talib Ibn Abdul Muttalib Ibn Hashim Ibn Abde Manaf. Peace be on you, O Messenger of the Lord of the worlds and the best of all the creation. Peace be on you, O chief of the successors and vicegerent of the Messenger of the Lord of the worlds.
The Quraishi became very sad at this and finally the ten most wicked among them said: These rocks are not speaking; Muhammad (S) has hidden some people below the ground near the rocks and they are calling out to deceive us. When the accursed ones uttered such nonsense, ten of those rocks rolled towards them and surrounding them arose and fell on their heads breaking them up again and again till each of their brains flowed out through their nostrils, their heads became spongy and they all died.
Learning of their fate, their family members and clansmen came weeping and wailing and said: More than the grief of their death, we are worried of the fact that Muhammad is pleased that they are killed by the stones which are proof of his miracle. Almighty Allah gave speech to their coffins and they called out: Muhammad is true and not false; and you are liars and not truthful. Then the coffins shook and expelled their dead bodies and shouted: We are not made to carry enemies of Allah to the chastisement of Allah.Seeing this, Abu Jahl said: Muhammad has enchanted the coffins like he enchanted the rocks to make them speak. If their being killed by the rocks verifies his words and is proof of his prophethood, ask him to pray to Allah, Who has created them, to make them alive again. Hearing this request, His Eminence (S) asked Ali (a.s.): O Abal Hasan! Did you hear what these ignorant people said? These are the ten persons who were killed at that time. Now tell me, how many wounds are caused in your body due the stones they threw on us? Ali (a.s.) said: I suffered four wounds yesterday.
The Prophet said: You’ve got four and I got six. Now we must pray to Allah to make alive as many dead among these ten. Thus His Eminence (S) prayed for six and Ali (a.s.) prayed for four. They all became alive and said: O Muslims! Muhammad and Ali (a.s.) have great esteem in the kingdom, where we were. We saw a facsimile of Muhammad (S) on a throne near the prototype of Holy Kaaba in heaven and one near Allah’s empyrean and many facsimiles of Ali (a.s.) are near the prototype of Holy Kaaba and near Allah’s throne and a group of angels are near the curtain of Allah’s throne.
They gather around the two images and pay respects and recite Durood on them. They follow their commands and to have their wishes fulfilled, they invoke Allah through their names. Finally seven of them accepted faith and others were overpowered by wickedness.
Reference:Hayat Al-Qulub Vol. 2