Hadith Q105

وَفِيهِ مَا دَلَّ عَلَى أَنَّ لَا نَجَاسَةَ فِي الْأَحْيَاءِ، وَإِنْ كَانَ لَا يَجُوزُ أَكْلُ لَحْمِهِ، إِلَّا مَا خَصَّ بِهِ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْكَلْبَ، وَكُلَّ مَا يَقَعُ عَلَيْهِ اسْمُ الْكَلْبِ مِنَ السِّبَاعِ؛ إِذِ الذُّبَابُ لَا يُؤْكَلُ، وَهُوَ مِنَ الْخَبَائِثِ الَّتِي أَعْلَمَ اللَّهُ أَنَّ نَبِيَّهُ الْمُصْطَفَى يُحَرِّمُهَا فِي قَوْلِهِ‏:‏ ‏[‏وَيُحِلُّ لَهُمُ الطَّيِّبَاتِ وَيُحَرِّمُ عَلَيْهِمُ الْخَبَائِثَ‏]‏ ‏[‏الْأَعْرَافِ‏:‏ 157‏]‏ وَقَدْ أَعْلَمَ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنَّ سُقُوطَ الذُّبَابِ فِي الْإِنَاءِ لَا يُنَجِّسُ مَا فِي الْإِنَاءِ مِنَ الطَّعَامِ وَالشَّرَابِ لِأَمْرِهِ بِغَمْسِ الذُّبَابِ فِي الْإِنَاءِ إِذَا سَقَطَ فِيهِ، وَإِنْ كَانَ الْمَاءُ أَقَلَّ مِنْ قُلَّتَيْنِ
And in this there is also evidence that there is no impurity in living things, even if it is such an animal whose meat is not permissible to eat. Except for that animal which the Prophet Muhammad (peace be upon him) has specifically excluded, such as the dog and every predator to which the name of dog applies. Because the fly is not eaten and it is among those impure things about which Allah Almighty has stated that His chosen Prophet (peace be upon him) will declare them unlawful, in His statement « وَيُحِلُّ لَهُمُ الطَّيِّبَاتِ وَيُحَرِّمُ عَلَيْهِمُ الْخَبَائِثَ » [ سورة الأعراف ] "He makes lawful for them the good things and forbids for them the impure things." The Prophet Muhammad (peace be upon him) has stated that if a fly falls into a vessel, the food and drink in it do not become impure. Because he (peace be upon him) has ordered that the fly be dipped into the vessel when it falls into it, even if the water is less than two pitchers.
Hadith Reference صحيح ابن خزيمه / جماع أبواب ذكر الماء الذي لا ينجس، والذي ينجس إذا خالطته نجاسة / Q105