It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Do not boast about your forefathers who died in the time of Ignorance. Do you boast about them? Shall I not inform you (of their reality)? The example of your forefathers who died in the time of Ignorance is like a king who built a palace by the roadside, laid out food in it and appointed some men over it, and said: 'Let no one pass by here without eating some of this food of mine.' So whenever a man passed by in fine appearance and good clothes, they (the attendants) would rush to him, cling to him and bring him so that he would eat of that food; and when a man came in a poor state and shabby clothes, they would turn him away. When this had gone on for a long time, Allah Almighty sent one of the angels in a poor state and tattered clothes. He passed by their side, and they rose towards him and began to push him away. He said to them: 'I am hungry, and food is only prepared for the hungry.' They said: 'No, the king's food is eaten only by the righteous.' So they pushed him away, and he left.
Then that angel came again in a handsome form and fine clothes. He passed by them as though he did not wish to turn towards them at all and kept his distance from them, so they rushed to him, clung to him and said: 'Come and partake of some of the king's food.' He said: 'I do not want it.' They said: 'We will not leave you. If news reaches the king that someone like you (honourable) passed by here and did not eat from his table, it would weigh very heavily on him, and we fear that some punishment from him may befall us.' So they compelled him and took him inside, until they brought him to the food and placed the food before him. Then he did like this with his clothes (shaking them) over the food. They asked: 'What are you doing?'
He said: 'I came to you in a poor state and shabby clothes and told you that I was hungry, but you turned me away; and now I have come to you in fine appearance and good clothes, and you compelled me, overpowered me and refused to let me go. May Allah disgrace you and disgrace your king! Your king has prepared this food merely for the sake of the world (and show), and he has no share with Allah.' (The narrator said:) Then the angel rose up, and the punishment descended upon them."
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith with these words from Ayyub (al-Sakhtiyani) except Sulayman al-Qafilani, and Shayban is alone in narrating it from him.
And the first part of the hadith, 'Do not boast about your forefathers', was also narrated by Hisham al-Dastuwa'i and al-Hasan bin Abi Ja'far al-Jafri."
Hadith Referenceالمعجم الأوسط / باب الميم / 7107
Hadith Gradingمحدثین:فيه سليمان القافلائي مختلف فيه
Hadith Takhrij«قال الهيثمي: وفيه سليمان القافلائي قال ابن عدي لا أرى بحديثه بأسا وقال النسائي متروك «مجمع الزوائد ومنبع الفوائد، ج 4، ص 54»» «أخرجه ابن حبان فى «صحيحه» برقم: 5775، والضياء المقدسي فى «الأحاديث المختارة» برقم: 287، 288، وأحمد فى «مسنده» برقم: 2783، والطيالسي فى «مسنده» برقم: 2804، والطبراني فى «الكبير» برقم: 11861، 11862، والطبراني فى «الأوسط» برقم: 2578»