Recall ( the time ) when We settled you in the land as the heirs of the tribe of Ad and how you established mansions in the plains and carved homes out of the mountains . Give thanks to God for His favors and do not commit evil in the land . "