to spend the night, lodge, or stay put somewhere for a while
This is the everyday verb for stopping somewhere overnight. A traveler reaches a place at sundown and stays until morning; a guest is given a roof for the night; an army camps before the next day's march. The picture is always temporary and practical, the pause between one stretch of journey and the next.
From that plain base the verb stretches in two directions. It can soften into simply remaining or being at rest in a place, so that righteousness can be said to have once lodged in Jerusalem, dew rests on a branch, and the faithful soul rests secure in good. At its most intense it means to settle in and abide, as when the worshipper takes lasting shelter in the shadow of the Almighty. Ruth's famous pledge uses this verb on purpose: she promises not one night but a whole shared life, and the word carries no hint of anything improper, which is exactly why it fits a vow of loyalty.
A cluster of laws turns the verb's overnight sense into a rule: certain things must not be left to stay through the night. The fat of a feast offering, the Passover meat, a hired worker's wages, and the body of an executed criminal all must be dealt with before morning, as if letting them linger overnight would let impurity or injustice harden into something permanent.
This lodging verb has nothing to do with the look-alike verb for grumbling (the second meaning below). They share the same three letters but belong to different word histories, and every ancient translation kept them strictly apart.