Complex sentence: Rather, it was kept as'security' by the husband--should divorce take place, the wife could demand her mahr.
Split into simpler sentences: Rather, it was kept as'security' by the husband. Should divorce take place, the wife could demand the return of her mahr.