The Book of Virtue, Good Manners and Joining of the Ties of Relationship (Kitab Al-Birr was-Salat-I-wa'l-Adab)
Muslim :: Book 32 : Hadith 6211
This hadith has been transmitted on the authority of Zuhri with a slight variation of wording (and the words are):" The one turning away and the other turning away when they meet and one avoids the other and the other also avoids him."