Sahih Muslim, Book 39, Hadith 144 (Muslim 5734)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

There is no transitive disease and he also reported along with it: The ill should not be taken to the healthy.