It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "There are three whose prayer Allah does not accept: a man who leads a people in prayer while they dislike him, a woman who spends the night while her husband is displeased with her, and a slave who has run away from his masters."