Hadithcore
Mishkat al-Masabih, 3227

‘Imran b. Husain said God’s Messenger forbade accepting invitations to food provided by profligates. Baihaqi transmitted in <i>Shu'ab al-iman</i>

وَعَن عمرَان ين حُصَيْنٍ قَالَ: نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِجَابَة طَعَام الْفَاسِقين

References1 variant
In-Book Reference
Book 13, Hadith 145