Mundhir bin Jarir (may Allah have mercy on him) narrates: I was with my father (Sayyiduna Jarir (may Allah be pleased with him)) at Bawarij when the cows returned in the evening, and he saw a cow that he did not recognise. He asked the herdsman: What is this? The people said: This is a cow that has joined (our) cows; it is not known whose it is. So he ordered that it be driven away, and it was driven away until it disappeared from sight. Then he said: I heard the Messenger of Allah (peace and blessings be upon him) say: "No one gives shelter to a stray animal except one who is himself astray."
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 2364