Hadith 1575
Abu Hurairah (RA) reported Allah's Messenger (ﷺ) as saying: He who kept a dog, but not meant for hunting or watching the herd, would lose one qirat of reward every day.
Hadith 2986
Ibn Abbas (RA) reported Allah's Messenger (ﷺ) as saying: If anyone wants to have his deeds widely publicised, Allah will publicise (his humiliation). And if anyone makes a hypocritical display (of his deeds) Allah will make a display of him.