The Messenger of Allah ﷺ said, "One of the prophets stopped to rest beneath a tree, and an ant stung him. So he ordered that his belongings be taken out from under it, and then he ordered that the ants' nest be burned, and it was burned in the fire. Allah then revealed to him, 'Why not a single ant?'"
وقال رسول الله ﷺ نزل نبي من الأنبياء تحت شجرة فلدغته نملة فأمر بجهازه فأخرج من تحتها وأمر بالنار فأحرقت في النار قال فأوحى الله إليه فهلا نملة واحدة
This is sahih due to the reliability of the manuscript, and it is found in the individual manuscript under number 17. Muslim narrated it through this route [7:43 S / 2:195 Bulaq], but Bukhari did not narrate it through this route. Rather, he narrated it [6:255 Fath] through the route of the Araj's copy, and Muslim likewise narrated it [2:195 Bulaq] from the narration of Araj. Bukhari also narrated it [6:108 Fath], and Muslim [2:195 Bulaq], both from the narration of Saeed bin Musayab and Abu Salama from Abu Hurairah.