The Levite in Judges 19
The Levite in Judges 19 did he do anything wrong and what in that case did he do wrong?
We see in Judges 19 that what happened was that a concubine of the levite decided to be a harlot and then returned to the levite. Now if the levite would have had sex with her after she returned that would be abomination.
(Deuteronomy 24:4 [KJV]) Her former husband, which sent her away, may not take her again to be his wife, after that she is defiled; for that is abomination before the LORD: and thou shalt not cause the land to sin, which the LORD thy God giveth thee for an inheritance.
But he met the father of the woman and then when they had departed and came to another city. Some men demanded to homosexually rape the Levite (Judges 19:22).
(Judges 19:22 [KJV]) Now as they were making their hearts merry, behold, the men of the city, certain sons of Belial, beset the house round about, and beat at the door, and spake to the master of the house, the old man, saying, Bring forth the man that came into thine house, that we may know him.
Notice then that it is the master of the house that offers his own daughter and the Levites concubine instead of the Levite. That they may rape the daughter and the concubine instead of the Levite. Notice also that the Levite is not involved in the decision making here. He is quiet.
(Judges 19:23-25 [KJV])  And the man, the master of the house, went out unto them, and said unto them, Nay, my brethren, nay, I pray you, do not so wickedly; seeing that this man is come into mine house, do not this folly.  Behold, here is my daughter a maiden, and his concubine; them I will bring out now, and humble ye them, and do with them what seemeth good unto you: but unto this man do not so vile a thing.  But the men would not hearken to him: so the man took his concubine, and brought her forth unto them; and they knew her, and abused her all the night until the morning: and when the day began to spring, they let her go.
So you cannot really blame the Levite for this raping of the concubine. I mean he could have tried to stop them but on the other hand she had decided to play the harlot and therefore they were not married anymore since fornication is grounds for divorce (Mt 5:32). Also if he had stopped them they might have tried to rape him (Judges 19:22).
(Matthew 5:32 [KJV]) But I say unto you, That whosoever shall put away his wife, saving for the cause of fornication, causeth her to commit adultery: and whosoever shall marry her that is divorced committeth adultery.
He did break Leviticus 21:11 when he carried the dead woman and cut her in pieces. That is the sin of uncleanness that lasts for 7 days.
(Leviticus 21:11 [KJV]) Neither shall he go in to any dead body, nor defile himself for his father, or for his mother;
Either way he did not commit the abomination that caused the LORD to smite the tribe of Benjamin before israel so that 25100 men that drew the sword fell.
(Judges 20:35 [KJV]) And the LORD smote Benjamin before Israel: and the children of Israel destroyed of the Benjamites that day twenty and five thousand and an hundred men: all these drew the sword.
The sin that caused the LORD to smite the Benjamites was that they did not deliver the rapists to the other brethren of Israel.
(Judges 20:13 [KJV]) Now therefore deliver us the men, the children of Belial, which are in Gibeah, that we may put them to death, and put away evil from Israel. But the children of Benjamin would not hearken to the voice of their brethren the children of Israel:
So basically they protected the wicked.
(Proverbs 17:15 [KJV]) He that justifieth the wicked, and he that condemneth the just, even they both are abomination to the LORD.
So it was the sin that the Benjamites did when they justified the wicked rapists that caused the LORD to smite the Benjamites.