Sahih al-Bukhari, Volume 8, Book 73, Hadith 49 (USC-MSA) ⓘ
Narrated `Aisha: I said, "O Allah's Messenger! I have two neighbors! To whom shall I send my gifts?" He said, "To the one whose gate in nearer to you."
حَدَّثَنَا حَجَّاجُ بْنُ مِنْهَالٍ، حَدَّثَنَا شُعْبَةُ، قَالَ أَخْبَرَنِي أَبُو عِمْرَانَ، قَالَ سَمِعْتُ طَلْحَةَ، عَنْ عَائِشَةَ، قَالَتْ قُلْتُ يَا رَسُولَ اللَّهِ إِنَّ لِي جَارَيْنِ فَإِلَى أَيِّهِمَا أُهْدِي قَالَ " إِلَى أَقْرَبِهِمَا مِنْكِ بَابًا " .
also referenced under: Book 78, Hadith 51 (In-Book) & Hadith 6020 (DarusSalam)