It is narrated from Sayyiduna al-Tufayl bin Amr al-Dawsi (may Allah be pleased with him) that he said: Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) taught me the Qur'an, so I gave him a bow as a gift. Then in the morning he came to the Prophet (peace and blessings be upon him) with that bow hung around his neck, and the Prophet (peace and blessings be upon him) said to him: "You have hung it around your neck from Hell(fire)." I said: O Messenger of Allah, sometimes we attend their meals and eat from them. He (peace and blessings be upon him) said: "As for food that has been prepared specially for you (in return for teaching the Qur'an), if you eat it you will only be eating your (share of the Hereafter); but as for what has been prepared for others and you are present and eat from it, there is no harm in that."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith is narrated from al-Tufayl bin Amr (may Allah be pleased with him) only with this chain, and Isma'il bin Ayyash (may Allah have mercy on him) is alone in narrating it."
In the edition of Dar al-Haramayn it is like this (Abdullah bin Sulayman), and probably the correct name is Abd Rabbih.
Hadith Referenceالمعجم الأوسط / باب الألف / 439
Hadith Gradingمحدثین:إسناده ضعيف، فيه عبد الله بن سليمان بن عمير لم يُعرف، والظاهر انقطاعه
Hadith Takhrij«قال الهيثمي: وفيه عبد الله بن سليمان بن عمير ولم أجد من ترجمه ولا أظنه أدرك الطفيل «مجمع الزوائد ومنبع الفوائد، ج 4، ص 95»» «أخرجه سعيد بن منصور فى «سننه» برقم: 109»