It is narrated from Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him) that he (peace and blessings be upon him) said: "Whoever gives shelter to a stray is himself astray, as long as he does not announce it."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب اللقطة / 12078