And We gave Lot prophethood, the separation of judgment between disputants, and knowledge of Allah's command and His religion, and We rescued him from his village -Sodom- whose people used to perform foul deeds. Indeed, they were, because of the foul deeds and immoralities which they brought, people of evil and ugliness, going out from the obedience of Allah.