In Judges 21, men came to the house with intentions to rape a guest and both times the homeowner offers up his virgin daughter (and this time a concubine wife) instead of them raping his male house guest. This happens in the story of Sodom and Gomorrah too.