No rule for this one
No ending or word group predicts the article of Stadt. Learn it as a pair and say it out loud: die Stadt.
die Stadt
It's die Stadt. Stadt is feminine, plural die Städte.
Lahore ist eine große Stadt.
Lahore is a big city.
No ending or word group predicts the article of Stadt. Learn it as a pair and say it out loud: die Stadt.