Mishkat al-Masabih 3271
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 .
وَعَنْ جَابِرٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «ثَلَاثَةٌ لَا تُقْبَلُ لَهُمْ صَلَاةٌ وَلَا تَصْعَدُ لَهُمْ حَسَنَةٌ الْعَبْدُ الْآبِقُ حَتَّى يَرْجِعَ إِلَى مَوَالِيهِ فَيَضَعَ يَدَهُ فِي أَيْدِيهِمْ وَالْمَرْأَةُ السَّاخِطُ عَلَيْهَا زَوْجُهَا وَالسَّكْرَانُ حَتَّى يصحو» . رَوَاهُ الْبَيْهَقِيّ فِي شعب الْإِيمَان