﴿وَاسْأَلِ الْقَرْيَةَ﴾
Ask the town. (Yūsuf 12:82)
The intended addressees are not buildings; the sense is ahl al-qaryah, the inhabitants of the town. The possessive head ahl is understood but unstated. Asking a town naturally means consulting people capable of answering.
Both reasoning and familiar usage recover the omitted term. Rhetorically, the expression invokes the town as a whole and suggests broadly available testimony without spelling out “its inhabitants.”