Judges 21:2

And the people came to the house of God, and abode there till even before God, and lifted up their voices, and wept sore;

Chapters 17-21 record events from the early part of the history of the judges placed out of chronological order, while the real story of the book ends with chapter 16. The verse belongs to the account of the crime at Gibeah and the people's response to it. These final chapters show the low state into which Israel had fallen before Samuel the prophet. These closing chapters record backsliding and consequent disgrace and punishment, where conventional hospitality is set above female virtue and clannish loyalty to a tribe is set above rendering justice, conditions still seen today, yet there is never excuse for sin. The book records Israel's fearful backsliding alongside God's great mercy and goodness.

The verse calls the sanctuary at Shiloh the house of God. That sanctuary was God's dwelling among His people, with His special presence in the tabernacle's Most Holy Place above the mercy seat between the cherubim. The people came there and remained before God, and wept. They remained there till evening, lifting up their voices and weeping bitterly.