Mishkat al-Masabih

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 imam 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 Shu'ab al-iman

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