Maliks Muwatta Book 56, Hadith Number 4.
Section : Disliked Speech.
Malik related to me from Yahya ibn Said that Isa ibn Maryam encountered a pig on the road. He said to it, “Go in peace.” Somebody asked, “Do you say this to a pig?” Isa said, “I fear lest I accustom my tongue to evil speech.”