Bulugh al-Maram 14
وَعَنْ أَبِي هُرَيْرَةَ - رضي الله عنه - قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «إِذَا وَقَعَ الذُّبَابُ فِي شَرَابِ أَحَدِكُمْ فَلْيَغْمِسْهُ, ثُمَّ لِيَنْزِعْهُ, فَإِنَّ فِي أَحَدِ جَنَاحَيْهِ دَاءً, وَفِي الْآخَرِ شِفَاءً». أَخْرَجَهُ الْبُخَارِيُّ وَأَبُو دَاوُدَ, وَزَادَ: «وَإِنَّهُ يَتَّقِي بِجَنَاحِهِ الَّذِي فِيهِ الدَّاءُ»
From Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "When a fly falls into the drink of one of you, let him dip it in, then take it out, for in one of its wings there is disease and in the other there is cure." Reported by al-Bukhari and Abu Dawud, and he added: "And it protects itself with the wing in which there is the disease."