Abu Yahya Suhaib bin Sinan (RadyAllahu anhu) reported that: The Messenger of Allah (Sallellahu 'alaihi wa sallam) said, "How wonderful is the case of a believer; there is good for him in everything and this applies only to a believer. If prosperity attends him, he expresses gratitude to Allah and that is good for him; and if adversity befalls him, he endures it patiently and that is better for him". [Muslim].
A Muslim is required to behave in poverty and prosperity, affluence and hardship, in the manner stated in this Hadith. It means that to forget Allah in prosperity, rather than being thankful to Him for His Favour is defiance of His Orders. Similarly, it is unbecoming of a Muslim that in troubles and turmoil, rather being patient, he tends to weeping and crying, grousing and grieving against the Will of Allah.