A companion of the Prophet ﷺ reported him as saying: When two people come together to issue an invitation, accept that of the one whose door is nearer in neighbourhood, but if one of them comes before the other accept the invitation of the one who comes first. (Using translation from Abū Dāʾūd 3756)
عَنْ رَجُلٍ مِنْ أَصْحَابِ النَّبِيِّ ﷺ قَالَ إِذَا اجْتَمَعَ الدَّاعِيَانِ فَأَجِبْ أَقْرَبَهُمَا بَابًا فَإِنَّ أَقْرَبَهُمَا بَابًا أَقْرَبُهُمَا جِوَارًا فَإِذَا سَبَقَ أَحَدُهُمَا فَأَجِبِ الَّذِي سَبَقَ