It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "There are three whose testimony of 'La ilaha illallah' (there is none worthy of worship except Allah) is not accepted: the active and the passive partner (in sodomy), the active and the passive woman (involved in lewdness between women), and the unjust ruler."
No one narrated this hadith from Ibn Harmalah (may Allah have mercy on him) except Umar bin Rashid (may Allah have mercy on him), and no one from Umar (may Allah have mercy on him) except Salih bin Abi Salih (may Allah have mercy on him), and Abu Ata' (may Allah have mercy on him) is alone in narrating it.
Hadith Referenceالمعجم الأوسط / باب الباء / 3104
Hadith Gradingمحدثین:إسناده ضعيف جدًّا، فيه عمر بن راشد كذاب
Hadith Takhrij«قال الهيثمي: وفيه عمر بن راشد المدني الحارثي وهو كذاب «مجمع الزوائد ومنبع الفوائد، ج 6، ص 272»»