The Messenger of Allah ﷺ said, "There are three from whom Allah does not accept any prayer. A man who leads a people in prayer while they dislike him, a man who comes to the prayer dibaran," meaning he comes to it after he has missed it, "and a man who enslaves the one he has freed."
حدثنا القعنبي حدثنا عبد الله بن عمر بن غانم عن عبد الرحمن بن زياد عن عمران بن عبد المعافري
أن رسول الله ﷺ كان يقول ثلاثة لا يقبل الله منهم صلاة من تقدم قوما وهم له كارهون ورجل أتى الصلاة دبارا والدبار أن يأتيها بعد أن تفوته ورجل اعتبد محرره
No references are available.
[Its chain of transmission is daif] Reported by Ibn Majah in Establishing Prayers, Chapter on One Who Leads People in Prayer While They Dislike Him, hadith no. 970, from the hadith of Abdul-Rahman bin Ziyad Afriqi, with this wording.Afriqi is daif, as mentioned previously at 514, 62. And Imran Maafiri is daif, as stated in Taqrib and other sources.