Hadithcore
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 <i>Shu'ab al-iman</i>.

وَعَنْ جَابِرٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «ثَلَاثَةٌ لَا تُقْبَلُ لَهُمْ صَلَاةٌ وَلَا تَصْعَدُ لَهُمْ حَسَنَةٌ الْعَبْدُ الْآبِقُ حَتَّى يَرْجِعَ إِلَى مَوَالِيهِ فَيَضَعَ يَدَهُ فِي أَيْدِيهِمْ وَالْمَرْأَةُ السَّاخِطُ عَلَيْهَا زَوْجُهَا وَالسَّكْرَانُ حَتَّى يصحو» . رَوَاهُ الْبَيْهَقِيّ فِي شعب الْإِيمَان

References1 variant
In-Book Reference
Book 13, Hadith 187