Sahih al-Bukhari, Book 78, Hadith 51 (In-Book) ⓘ
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: Hadith 6020 (DarusSalam) & Volume 8, Book 73, Hadith 49 (USC-MSA)