I said, "O Messenger of Allah ﷺ! 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." (Using translation from Bukhārī 2595)
قُلْتُ يَا رَسُولَ اللهِ إِنَّ لِي جَارَيْنِ فَإِلَى أَيِّهِمَا أُهْدِي؟ قَالَ «إِلَى أَقْرَبِهِمَا مِنْكَ بَابًا»