Hadithcore
Mishkat al-Masabih, 3226

Abu Huraira reported God's Messenger as saying, “The invitations of two people who are rivalling one another should not be accepted, and the food they provide should not be eaten.” The <i>imam</i> Ahmad said it means two people who are competing with one another in providing a feast out of self-glory and ostentation. Baihaqi transmitted in <i>Shu'ab al-iman</i>

عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «الْمُتَبَارِيَانِ لَا يُجَابَانِ وَلَا يُؤْكَلُ طَعَامُهُمَا» . قَالَ الْإِمَامُ أَحْمَدُ: يَعْنِي المتعارضين بالضيافة فخراً ورياء

References1 variant
In-Book Reference
Book 13, Hadith 144