Another man was publicly flogged because he married a divorced woman before the mandatory three-month waiting period had ended.
Ok, that guy was kind of an asshole.
I am really surprised that fundamentalist Islam allows for anyone to ever marry a divorced woman. A three month waiting period, long enough to offer a modest fig leaf of "I wasn't fucking your wife (provided no one ever asks any follow up questions)" seems pretty reasonable.
I mean, so long as you don't rub it in, you won't get flogged.