Sayyiduna Abdullah bin Mughaffal (may Allah be pleased with him) narrates: The Prophet (peace and blessings of Allah be upon him) permitted keeping a dog for (the protection of) fields.
Hadith Referenceصحیح ابن حبان / كتاب الحظر والإباحة / 5659
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح لغيره - «صحيح أبي داود» (2535): م.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده قوي