Since it is a righteous thing with God to repay affliction to those who afflict you,
Rest ... is not a verb but a noun, being the thing that God will recompense to the just, just as affliction will be meted out to the persecutors.  The thought of  2 Thessalonians 1:5-7 was summed up thus by Adam Clarke: