Here are some verses clearly related to the scourge mentioned in D&C 84. It is interesting because it is so like what the Nephites underwent to destroy the wicked and prepare the righteous for the Lord’s visit to them. These verses both promise that the saints will not undergo trials if they will do whatsoever the Lord commands, and also promise that the saints will be visited with sore afflictions, pestilence, plague, sword, vengeance, and devouring fire otherwise.
D&C 97:23 The Lord’s scourge shall pass over by night and by day, and the report thereof shall vex all people; yea, it shall not be stayed until the Lord come;
24 For the indignation of the Lord is kindled against their abominations and all their wicked works.
25 Nevertheless, Zion shall escape if she observe to do all things whatsoever I have commanded her.
26 But if she observe not to do whatsoever I have commanded her, I will visit her according to all her works, with sore affliction, with pestilence, with plague, with sword, with vengeance, with devouring fire.
It brings to mind Joseph Smith’s words “When I contemplate upon all things that have been manifested, I am aware that I ought not to murmur, and do not murmur, only in this, that those who are innocent are compelled to suffer for the iniquities of the guilty; and I cannot account for this, only on this wise, that the saying of the Savior has not been strictly observed: ‘If thy right eye offend thee, pluck it out, and cast it from thee; or if thy right arm offend thee, cut it off, and cast it from thee.’ Now the fact is, if any of the members of our body is disordered, the rest of our body will be affected with it, and then all are brought into bondage together;”.
And I am sorry to think of how many people read that last quotation and say to themselves that they want to all suffer together rather than cast people out much more strictly. As if failing to observe the saying of the Savior is some how the right and noble thing to do.