NASAI-KUBRA 8561:
from Abū Hurayrah —
[Machine] The Prophet ﷺ said, "A prophet from the prophets was sitting under a tree when he was stung by an ant. So, he ordered his luggage to be taken out from under the tree and then he burned the ant's entire colony. Allah revealed to him, 'Why did you not burn just one ant?' " Qutaibah said in his narration, "He was stung by an ant, so he ordered his apparatus to be taken out and then he ordered it to be burned. So, Allah revealed to him."
الكبرى للنسائي ٨٥٦١:
عن ابو هريره —
عَنِ النَّبِيِّ ﷺ قَالَ «نَزَلَ نَبِيٌّ مِنَ الْأَنْبِيَاءِ تَحْتَ شَجَرَةٍ فَلَسَعَتْهُ نَمْلَةٌ فَأَمَرَ بِرَحْلِهِ فَأُخْرِجَ مِنْ تَحْتِهَا ثُمَّ حَرَّقَ عَلَى النَّمْلِ قَرْيَتَهَا فَأَوْحَى اللهُ إِلَيْهِ فَهَلَّا نَمْلَةً وَاحِدَةً» وَقَالَ قُتَيْبَةُ فِي حَدِيثِهِ «فَلَدَغَتْهُ نَمْلَةٌ فَأَمَرَ بِجِهَازِهِ فَأَخْرَجَ مِنْ تَحْتِهَا ثُمَّ أَمَرَ بِهَا فَأُحْرِقَتْ فَأَوْحَى اللهُ إِلَيْهِ»
hadithunlocked.com