Here's the passage:
Sahih al-Bukhari 5825—Narrated Ikrima: Rifaa divorced his wife whereupon Abdur-Rahman married her. Aisha said that the lady came wearing a green veil and complained to her (Aisha) and showed her a green spot on her skin caused by beating. It was the habit of ladies to support each other, so when Allah’s messenger came, Aisha said, “I have not seen any woman suffering as much as the believing women. Look! Her skin is greener than her clothes!” When Abdur-Rahman heard that his wife had gone to the prophet, he came with his two sons from another wife. She said, “By Allah! I have done no wrong to him, but he is impotent and is as useless to me as this,” holding and showing the fringe of her garment. Abdur-Rahman said, “By Allah, O Allah’s messenger! She has told a lie. I am very strong and can satisfy her, but she is disobedient and wants to go back to Rifaa.” Allah's messenger said to her, “If that is your intention, then know that it is unlawful for you to remarry Rifaa unless Abdur-Rahman has had sexual intercourse with you.” The prophet saw two boys with Abdur-Rahman and asked (him), “Are these your sons?” On that Abdur-Rahman said, “Yes.” The prophet said, “You claim what you claim (that he is impotent)? But by Allah, these boys resemble him as a crow resembles a crow.”Notice that the story is about a woman whose Muslim husband beat her until her skin turned green. Aisha takes the woman to Muhammad, hoping that he would deal with the problem. But instead of punishing or even rebuking the woman's husband, Muhammad instead criticizes the woman who was being beaten. No wonder Aisha says that Muslim women are treated worse than pagan women.
For more on women in Islam, watch these videos: