This is the exact quote from the Goldman Sachs' article from December 2022 -
"China, India, and Indonesia slightly outperformed our economists’ forecasts from 2011, while Russia, Brazil, and Latin America more significantly underperformed those projections. “We expect that the weight of global GDP will shift (even) more towards Asia over the next 30 years,” our economists wrote in their latest report. In 2050, the world’s five largest economies (measured in U.S. dollars) are projected to be China, the U.S., India, Indonesia, and Germany.
Looking out to 2075, the prospect of rapid population growth in the likes of Nigeria, Pakistan, and Egypt imply that — with the appropriate policies and institutions — these economies could become some of the largest in the world."
www.goldmansachs.com
In the case of India, China and the US, this prediction is based on the extrapolation of growth and development parameters data from 2022. In the case of Pakistan, Nigeria and Egypt, they predict that they will be large economies if changes are made to implement appropriate policies and reform institutions. This is a very big IF and judging by their current state, it doesn't seem likely at all given that their population growth surpasses their GDP growth as we discussed a few days back.