Do we believe a dog is man's best friend?
(ל) וְאַנְשֵׁי־קֹ֖דֶשׁ תִּהְי֣וּן לִ֑י וּבָשָׂ֨ר בַּשָּׂדֶ֤ה טְרֵפָה֙ לֹ֣א תֹאכֵ֔לוּ לַכֶּ֖לֶב תַּשְׁלִכ֥וּן אֹתֽוֹ׃ {ס}

(30) You shall be holy people to Me: you must not eat flesh torn by beasts in the field; you shall throw it to the dogs.

לכלב תשלכון אתו. לְלַמֶּדְךָ שֶׁהַכֶּלֶב נִכְבָּד מִמֶּנּוּ, וְלִמֶּדְךָ הַכָּתוּב שֶׁאֵין הַקָּבָּ"ה מְקַפֵּחַ שְׂכַר כָּל בְּרִיָּה, שֶׁנֶּאֱמַר וּלְכָל בְּנֵי יִשְׂרָאֵל לֹא יֶחֱרַץ כֶּלֶב לְשֹׁנוֹ (שמות י"א), אָמַר הַקָּבָּ"ה תְּנוּ לוֹ שְׂכָרוֹ (מכילתא):

It is to teach you that the dog is to be given preference in this respect and Scripture tells you at the same time that God does not withhold the reward due to any of His creatures. The dog is entitled to reward because it is stated, (Exodus 11:7) “But against the children of Israel shall not a dog move its tongue”, and this happened. The Holy One, blessed be He, said: Give it the reward it deserves (Mekhilta d'Rabbi Yishmael 32:30:3).

מדרבי נתן דתניא רבי נתן אומר מניין שלא יגדל אדם כלב רע בתוך ביתו ואל יעמיד סולם רעוע בתוך ביתו ת"ל (דברים כב, ח) לא תשים דמים בביתך
The justification for this is from the ruling of Rabbi Natan, as it is taught in a baraita: Rabbi Natan says: From where is it derived that one may not raise a vicious dog in his house, and one may not set up an unstable ladder in his house? The verse states: “You shall not bring blood into your house” (Deuteronomy 22:8), i.e., one may not allow a hazardous situation or item to remain in one’s house. As long as the hazard remains, the owner is in violation of this verse and therefore the court may excommunicate him for failing to remove the danger.
אין מגדלין חזירין בכל מקום לא יגדל אדם את הכלב אלא אם כן היה קשור בשלשלת אין פורסין נישובים ליונים אלא אם כן היה רחוק מן הישוב ל' ריס:
Furthermore, one may not raise pigs anywhere, and a person may not raise a dog unless it is tied with chains. One may spread out traps [nishovim] for pigeons only if this was performed at a distance of at least thirty ris, which is 8,000 cubits, from any settled area, to ensure that privately owned pigeons are not caught in the traps.
אָמַר רַב כָּהֲנָא אָמַר רַבִּי שִׁמְעוֹן בֶּן לָקִישׁ, וְאָמְרִי לַהּ אָמַר רַב אַסִּי אָמַר רֵישׁ לָקִישׁ, וְאָמְרִי לַהּ אָמַר רַבִּי אַבָּא אָמַר רַבִּי שִׁמְעוֹן בֶּן לָקִישׁ: כׇּל הַמְגַדֵּל כֶּלֶב רַע בְּתוֹךְ בֵּיתוֹ מוֹנֵעַ חֶסֶד מִתּוֹךְ בֵּיתוֹ, שֶׁנֶּאֱמַר: ״לַמָּס
Rav Kahana said that Rabbi Shimon ben Lakish said, and some say Rav Asi said that Reish Lakish said, and some say Rabbi Abba said that Rabbi Shimon ben Lakish said: Anyone who raises an evil dog within his home prevents kindness from entering into his home, since poor people will hesitate to enter his house. As it is alluded to in the verse: “To him that is afflicted [lamas],
כל המגדל כלב בתוך ביתו מונע כו' כבר אמרו במס' ב"ק אסור לאדם לגדל כלב רע בתוך ביתו שנאמר לא תשים דמים בביתך אבל הכא הוסיף דאל יגדל כלב אפי' הוא יודע בו שאינו כלב רע ומשום דמונע חסד גו' דהאורחים והעניים לא ידעו בו שאינו רע וסוברים שהוא רע ויראים ממנו מלבא לביתו וכדמייתי הך עובדא דלא היה הכלב רע ולא היה יכול להזיק ומתוך שהיתה סבורה שהוא רע הפילה ואמר ויראת שדי יעזוב דפורק ממנו כו' דדרך מגדל הכלב להעמידו על הפתח לשמירת ביתו ויראת שדי שהיא על המזוזה לשמירת פתח ביתו הוא יעזוב ופורק :
אסור לגדל כלב רע אא"כ הוא אסור בשלשלאות של ברזל וקשור בהם ובעיר הסמוכה לספר מותר לגדלו וקושרו ביום ומתירו בלילה: הגה וי"א דהשתא שאנו שרוין בין העכו"ם ואומות בכל ענין שרי ופוק חזי מאי עמא דבר (הגהת אלפסי החדשים) מיהו נראה אם הוא כלב רע שיש לחוש שיזיק בני אדם דאסור לגדלו אא"כ קשור בשלשלאות של ברזל:
אָמַר רַבִּי יוֹחָנָן: אִילְמָלֵא לֹא נִיתְּנָה תּוֹרָה, הָיִינוּ לְמֵידִין צְנִיעוּת מֵחָתוּל, וְגָזֵל מִנְּמָלָה, וַעֲרָיוֹת מִיּוֹנָה. דֶּרֶךְ אֶרֶץ מִתַּרְנְגוֹל — שֶׁמְּפַיֵּיס וְאַחַר כָּךְ בּוֹעֵל.
Similarly, Rabbi Yoḥanan said: Even if the Torah had not been given, we would nonetheless have learned modesty from the cat, which covers its excrement, and that stealing is objectionable from the ant, which does not take grain from another ant, and forbidden relations from the dove, which is faithful to its partner, and proper relations from the rooster, which first appeases the hen and then mates with it.