Jabir reported God’s Messenger as saying, “There are three whose prayer is not accepted and whose good deeds are not taken up to heaven:
a runaway slave, till he returns to his patrons and puts his hand in theirs; a woman with whom her husband is displeased; and a drunkard, till he becomes sober.”
Baihaqi transmitted it in Shu'ab al-iman.