Psalm 122:3

Jerusalem is builded as a city that is compact together:

Cross-reference

In Ephesians 2:21, the church is 'joined together' as a holy temple, directly mirroring Jerusalem's compactness.

In Revelation 21:10-27, the New Jerusalem is the ultimate fulfillment of the compact, holy city described here.

2 Samuel 5:9 Historical context

In 2 Samuel 5:9, David builds up Jerusalem after capturing it, establishing the compact city described here.