Over pampering a child is not good because it will make them see only the easy side of life without being able to experience the harsh side of life. Even if you're the wealthiest man on earth, never pamper your kids to an extent that they will begin to see working for money as a stress to them. You will not live forever in this life which means that if you spoil your kids with pampering and a day comes when you live this earth, they will mismanage all your wealth and resources then go broke because in order for them to keep up with the kind of life you made them to be conversant with, they will sell off all the properties you have. Pampering our children does not hurt but when it becomes excessive, it's rather a way of spoiling them than being an act of love.
I do not agree with this philosophy, if am taking your words grain by grain, there is amount of money a person will get that puts his next three generations out of work, where do you think Elon Musk kid wants to work that he would see the value of it, the best they can do is carry over there dads business or being slot in a particular role. And how do squander a million dollar without shaking global economy. Raising your children to be hardworking is only a criteria for a middle or poor class.
It is good to have all the facilities in front of a child, but if he does not have any goals or responsibilities in life, that wealth eventually becomes a burden for him. The need to make children hardworking is not limited to rich or poor families rather, it is equally important for all families. You are the owner of a lot of money, but you are not making your child work hard, he may not be able to grow up to protect his wealth, do business, mix with people and keep up with everyone.
Lack of money can force people to work, but even in the abundance of money, it is possible to create a desire to achieve something on his own merit. The wealth of parents can give a child financial security, but it cannot create his identity or purpose in life rather, if a child is given responsibility from a young age, he will understand the consequences of his own decisions and learn the proper use of family resources.