God says
Be not, then, faint of heart, and grieve not: because you are bound to rise high if you are [truly] believers. -- Q.3:139
….God loves those who are patient in adversity: -- Q.3:146
You shall certainly be tried and tested in your possessions and in your personal selves and you shall certainly hear much that will grieve you, from those who received the Book before you and from those who worship many gods. But if you persevere patiently, and guard against evil – then that will be the determining factor in all affairs. -- Q.3:186
O you who have attained to faith! Be patient in adversity, and vie in patience with one another, and be ever ready [to do what is right], and remain conscious of God, so that you might attain to a happy state! -- Q.3:200
Be, then, [like Noah] patient in adversity – for, behold, the future belongs to the God-conscious! * -- Q.11:49
* This is though addressed to the Prophet, at the end of the story of Noah, but the statement by God is meant for all times.
Prophet said
1. “Verily, patience is (that which is) observed in the very beginning of (any) grief” – H: Bukhari and Muslim. N: Anas.