Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “The supplication of the oppressed is answered, even if he is wicked, for his wickedness is only against himself.”
Source: Musnad Aḥmad 8795
Grade: Hasan (fair) according to Ibn Hajar
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ دَعْوَةُ الْمَظْلُومِ مُسْتَجَابَةٌ وَإِنْ كَانَ فَاجِرًا فَفُجُورُهُ عَلَى نَفْسِهِ
8795 مسند أحمد بن حنبل
3/360 المحدث ابن حجر العسقلاني خلاصة حكم المحدث إسناده حسن في فتح الباري لابن حجر