The Messenger of Allah ﷺ said, "A prophet from among the prophets once camped beneath a tree, and an ant bit him. He ordered his belongings to be removed from under the tree, then commanded that the ant's nest be burned with fire. So Allah revealed to him, 'Was it not enough to punish a single ant?'"
حدثنا إسماعيل بن أبي أويس قال حدثني مالك عن أبي الزناد عن الأعرج
أن رسول الله ﷺ قال نزل نبي من الأنبياء تحت شجرة فلدغته نملة فأمر بجهازه فأخرج من تحتها ثم أمر ببيتها فأحرق بالنار فأوحى الله إليه فهلا نملة واحدة