The wealth which breeds Allah-forgetfulness and indifference towards future existence is bad and pernicious, but if a man, by the grace of Allah, makes his worldly possessions a means of seeking the good pleasure of the Lord and gaining the entry into Paradise, these are a great blessing and a divine gift.
A Companion of the Prophet sallallahu alaihe wassallam has related, "A few of us were sitting together and the Messenger of Allah sallallahu alaihe wassallam came. There was a trace of water on his head. So, one of us said, 'O Messenger of Allah! We feel you are in very good spirits at the moment.''Yes, by the grace of Allah, it is so', the Prophet replied. We, then, began to talk about wealth. The Prophet sallallahu alaihe wassalam thereupon, remarked, 'There is no harm in being rich for one who fears Allah, and for the virtuous good health is better than wealth, and tranquility of the heart, too, is a Divine favour. (Musnad-Ahmad).
If material prosperity is accompanied by righteousness and the fear of Allah and willing observance of His commands, it is not harmful for faith. On the contrary, with Allah's favour, worldly possessions, in that case can be a source of spiritual advancement and elevation of ranks in the Hereafter. It is however, evident that piety does not, generally, go with wealth. In a majority of cases the wealthy go on the wrong track.