Numbers 24:21

And he looked on the Kenites, and took up his parable, and said, Strong is thy dwellingplace, and thou puttest thy nest in a rock.

Cross-reference

Jeremiah 22:23 uses the same 'nest' metaphor for a secure dwelling that will face judgment — a strong verbal and thematic parallel.