Context Of Sahih Al-Bukhari 5825
Ahadith are narrated by people on their own. They are not with their context and the necessary details. Therefore it is useless to make them a basis to infer or deduce anything independently from them. The woman in the hadith seems to be a lair. She used her second marriage to marry her former husband and for that purpose, she was torturing him by not letting him come near to her and telling lies about his impotency. She wanted to get divorced with all the benefits. The man might have beaten her, as it had been a practice then when he realized that he was used as a tool to get her to her former husband. His anger is understandable. The prophet had forbidden his followers from beating their wives on some other occasions and told them that the best among you is the one who is good with his wives. But in that case, his comments about her beating are not reported. But this kind of behavior with wives was not approved by the prophet. The prophet when realized the plan of the woman ordered her to consummate her marriage before she could get divorced. The society runs with rules and everyone has to comply with the rules.