Mishkat al-Masabih 488
وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ سُئِلَ عَنِ الْحِيَاضِ الَّتِي بَيْنَ مَكَّةَ وَالْمَدِينَةِ تَرِدُهَا السبَاع وَالْكلاب والحمر وَعَن الطُّهْرِ مِنْهَا فَقَالَ: لَهَا مَا حَمَلَتْ فِي بُطُونِهَا وَلَنَا مَا غَبَرَ طَهُورٌ. رَوَاهُ ابْنُ مَاجَه
From Abu Saʿid al-Khudri, that the Prophet ﷺ was asked about the water troughs between Makkah and Madinah which beasts of prey, dogs and donkeys come to drink at, and about purifying oneself from them. He said: "They have what they carried in their stomachs, and what remains is pure for us." Reported by Ibn Majah.