After the Prophet had exhausted all efforts to guide them...
After the Prophet had exhausted all efforts to guide them and was convinced that they would not come on the right path he complained to Allah “My Lord, these people do nothing but falsify me and refuse to believe in You. Therefore at the time of their great festival manifest your power to them by causing the trees that they worship to wither.” The curse was effective and the next day the people saw that their trees had dried and withered. They were astonished and terrified.
They were divided among themselves on what they thought had happened to the trees. One group said that the man from Allah had performed sorcery in order to transfer the credit of sustenance bestowed by their gods to his Lord. The second group said that their gods were displeased with them because the Prophet mentioned their defects and criticized them and the people did not object to this.
It was for this reason that their god had concealed its freshness and budding to show his anger against that Prophet so that the people would rise up against him. Having formed such an opinion the people discussed ways of eliminating the Prophet. After consultations they agreed that he should be killed. They constructed huge pipes of lead and fixed them to the spring reaching its bottom. Then they climbed down and after removing all the water and dug a well underground.
After this the people caught hold of the Prophet and imprisoned him in that well. Then they closed the mouth of the well with a huge boulder. They climbed up, removed the pipes and allowed the water to flow over the well into the spring. They said, “Now our gods shall be pleased with us for we have killed the Prophet who maligned us. We have buried him at the base of the greatest Sanobar tree.
Maybe now it will regain its freshness and bloom.” The whole day they heard the pleas of the Prophet buried inside. He was praying to his Lord thus: “O my Lord! You are aware of my confinement and see my sorrow and grief. Have mercy on my helplessness and take away my soul at the earliest. Do not delay it.” Ultimately the oppressed Prophet met his end. Peace of Allah be upon him. Allah revealed to Archangel Gabriel, “My creatures have become very sinful and unheeding of My wrath.
They feel secure from disaster. They worship something other than Me and have killed My messenger. Do they think they shall be able to face My Chastisement? Can they escape from My Kingdom and Dominion?