D&C 35
To Sidney Rigdon, the Lord declares that -
"...the time speedily cometh that great things are to be shown forth unto the children of men;
11 But without faith shall not anything be shown forth except desolations upon Babylon..." (Doctrine and Covenants | Section 35:10 - 11)
Which suggests to me that the wicked will become desolate no matter what. But righteous miracles and works will only come by faith in the Savior
Now to the righteous, even in the midst of much tribulation, the Lord counsels -
"Lift up your hearts and be glad, your redemption draweth nigh." (Doctrine and Covenants | Section 35:26)
The constantly reminds to take a eternal perspective and rejoice, be glad, and cheerful no matter what is taking place.