From Sahih Bukhari (Hadith 5771):
Narrated Abu Huraira: Allah's Messenger (ﷺ) said: The cattle (sheep, cows, camels, etc.) suffering from a disease should not be mixed up with healthy cattle, (or said: "Do not put a patient with a healthy person ). " (as a precaution)
Reference: Bukhari 5771