Sayyiduna Imran bin Husayn (may Allah be pleased with him) said: The Prophet (peace and blessings be upon him) forbade accepting the invitations of the sinful (fasiqun).
Al-Tabarani recorded it in al-Mu'jam al-Awsat and al-Mu'jam al-Kabir; its chain contains a narrator, Abu Marwan al-Wasiti, and I have not found anyone who has written his biography.