And this didn't used to just be a story of Mideastern nations. This was the story of the world. The one thing that changed this was nukes. Mutually assured destruction is why the Cold War is now called the Cold War, and not World War 3. And it's why direct confrontation between developed nations has really become a thing of the past. Countries like China would never have been able to develop if not for the peace and stability that nuclear weapons have enabled. We can even look to nations like India. It's surreal to imagine that until 1947 that entire nation was just a property of the British Empire. Even the notion of a British Empire is surreal! But now that they have gained their independence and are a nuclear nation, they are also gradually increasing in prosperity as Indian decisions are being made to put Indians first. And as a nuclear power their decisions, independence, and developments are all effectively guaranteed, at least until we develop technology that can effectively render nukes harmless.
Possessing nuclear weapons is a powerful Peace hack. Once you have them no one can really invade you without the threat of suffering massive collateral damage.
If we want to talk about the raw numbers of people getting out of extreme poverty, it follows that India and China acquiring a nuclear deterrent specifically had the biggest impact as their populations are so large.
Edit: Just to anticipate the obligatory "Venezuala communist -> bad outcome" comment: Yes, but why are they communist?
Compare how? What do you mean will happen?
Even in its deepest crises, India's army did not play kingmaker. Furthermore, India's federated structure–while annoying to reformers–checks the power of aspiring dictators. Every uneducated population, it seems, elects populists from time to time. The damage they can do in India appears to be more limited than the damage done to Venezuela by Chavez and Maduro. Venezuela will probably be an impoverished nation for decades; India has a chance of becoming a middle-income or even developed country by 2050.
https://www.npr.org/templates/transcript/transcript.php?stor...
https://www.gapminder.org/tools/#$state$time$value=2018;&mar...