Humayd bin Abd al-Rahman al-Himyari narrates from a man among the Companions of the Prophet (peace and blessings be upon him) that the Prophet (peace and blessings be upon him) said: "When two people inviting (you) come together, accept the invitation of the one whose door is nearer, for the one whose door is nearer is the nearer neighbour. And if one of them comes first, accept the invitation of the one who came first."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصداق / 14603