It can't be that simple. Plenty of other countries have lots of oil and gas (Russia, Venezuela, the US) and they aren't necessarily having economic miracles.
I agree that other nations like Venezuela and the US have squandered their natural wealth when compared with Norway's careful management.
That being said, I agree with the parent that the aforementioned lesson isn't particularly universal, as a perquisite is having a plentiful and valuable natural resource to manage.
So what lesson can a country like the UK or Germany take from Norway, given their natural resources are, for the most part, already exploited?
Total oil production per day per capita in 2017.
Norway: 1.9m bbl/day, 0.365 barrels per day per capita.
US: 13m bbl/day, 0.04 barrels per day per capita.
Russia: 11.2m bbl/day, 0.07 barrels per day per capita.
I always think about this when I read comments on HN declaring that immigration implies a breakdown/dilution in the value of the host nation's "superior culture".
Russia is a kleptocracy of Putin and his inner circles of billionaires.
The US economy has seen a fairly significant boost from shale gas and fracking.
Better counter-examples than those 3 would be Saudi Arabia and (to a lesser extent) Nigeria. And yes, as those 2 demonstrate it's not that simple, it's easy to fall prey to "the resource curse" aka "Dutch disease": https://en.wikipedia.org/wiki/Dutch_disease
Norway has been wiser in its approach.
Unlike Spain, they have been wise enough to use their money to diversify their economy, aware that this won't last forever.
Sadly there are few lessons we can learn and apply here to other countries, as not everyone has a tiny population and literally sits on mountains of money. Still I'm looking forward to see if their efforts pay off, and we don't find that the next generation of norwegians have a drop of 30% in their disposable income with respect to their parents.