Sahih al-Bukhari, Book 78, Hadith 46 (Bukhari 5787)

Narrates Ibn `Umar:

Allah' Apostle said, Gabriel kept on recommending me about treating the neighbors in a kind and polite manner, so much so that I thought that he would order (me) to make them (my) heirs."