I said, "O Allah's Messenger (ﷺ)! I have two neighbors; which of them should I give a gift to?" The Prophet (ﷺ) said, "(Give) to the one whose door is nearer to you."
Sahih al-Bukhari Book 51, Hadith 29