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)
قَالَ رَسُولُ اللَّهِ ﷺ «لَا تَضْرِبُوا إِمَاءَ اللَّهِ» فَجَاءَ عُمَرُ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ ذَئِرْنَ النِّسَاءُ عَلَى أَزْوَاجِهِنَّ فَرَخَّصَ فِي ضَرْبِهِنَّ فَأَطَافَ بِآلِ رَسُولِ اللَّهِ ﷺ نِسَاءٌ كَثِيرٌ يَشْتَكِينَ أَزْوَاجَهُنَّ فَقَالَ النَّبِيُّ ﷺ «لَقَدْ طَافَ بِآلِ مُحَمَّدٍ ﷺ نِسَاءٌ كَثِيرٌ يَشْتَكِينَ أَزْوَاجَهُنَّ لَيْسَ أُولَائِكَ بِخِيَارِكُمْ»