This is a hadith by Iyas ibn Abdullah
Iyas ibn Abdullah ibn Abu Dhubab reported the Messenger of Allah (ﷺ) as saying:
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 (peace be upon him) 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.
I can't understand who is "They are not the best among you" is referring to.
Is it the woman who are complaining about there husbands or it is there husbands who are beating them.