Do not beat Allah's handmaidens, but when Umar came to the Messenger of Allah ﷺ and said: Women have become emboldened towards their husbands, he (the Prophet) gave permission to beat them. Then many women came round the family of the Messenger of Allah ﷺ complaining against their husbands. So the Messenger of Allah ﷺ said: Many women have gone round Muhammad's family complaining against their husbands. They are not the best among you. (Using translation from Abū Dāʾūd 2146)
قَالَ رَسُولُ اللَّهِ ﷺ «لَا تَضْرِبُوا إِمَاءَ اللَّهِ» فَجَاءَ عُمَرُ بْنُ الْخَطَّابِ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ قَدْ ذَئِرْنَ عَلَى أَزْوَاجِهِنَّ فَرَخَّصَ لَهُمْ فِي ضَرْبِهِنَّ فَأَطَافَ بِآلِ رَسُولِ اللَّهِ ﷺ نِسَاءٌ كَثِيرٌ يَشْكُونَ أَزْوَاجَهُنَّ فَقَالَ النَّبِيُّ ﷺ «لَقَدْ طَافَ بِآلِ مُحَمَّدٍ نِسَاءٌ كَثِيرٌ يَشْكُونَ أَزْوَاجَهُنَّ لَيْسَ أُولَئِكَ بِخِيَارِكُمْ»