If you're referring to Sodom, this is inaccurate. It's a remarkable story for Abraham defying and arguing with God, not without success:
Genesis 18:22....[B]ut Abraham stood yet before the Lord
23 And Abraham drew near, and said: "Will You indeed sweep away the righteous with the wicked?
24 Perhaps there are fifty righteous within the city; will You indeed sweep away and not forgive the place for the fifty righteous that remain there?
25 That be far from You to do after this manner, to slay the righteous with the wicked, that so the righteous should be as the wicked; that be far from You; shall no the Judge of all the earth do justly?"
26 And the Lord said: "If I find in Sodom fifty righteous with the city, then I will forgive all the place for their sake."
Abraham continues to argue with God until 18:32:
And [Abraham] said: "Let the Lord not be angry and I will speak yet but this once. Perhaps ten shall be found there." And He said: "I will not destroy if for the ten's sake."
In the end, there are not 10 righteous men in Sodom. God sees to it that the few righteous man -- Lot and his family -- are allowed to escape and then destroys the rest. But that is a case where it's not majority behavior, but behavior by every member of a group.