Sahih al-Bukhari, Book 36, Hadith 3 (Bukhari 2175)

Narrated Aisha:

I said, "O Allah's Messenger (ﷺ)! I have two neighbors and would like to know to which of them I should give presents." He replied, "To the one whose door is nearer to you."