Psalm 122:3
Jerusalem is builded as a city that is compact together:
Cross-reference
Ephesians 2:21
Parallel
In Ephesians 2:21, the church is 'joined together' as a holy temple, directly mirroring Jerusalem's compactness.
Revelation 21:10–27
Typology
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.