"As though they had not dwelt therein"—meaning, as though they had not resided therein.
﴿كَأَنْ لَمْ يغنوا فِيهَا﴾ يَعْنِي: يقيموا.