Then the address shifts from the Children of Israel to the...
Then the address shifts from the Children of Israel to the Ummah of the Messenger of Allah (a.s) saying, You will raise mischief on earth twice, alluding to the two certain individuals and their followers and their breach of the covenant. And you shall behave insolently with mighty insolence, that is, their claim of the caliphate.
When the promise of the first of the two came to pass , that is, the Battle of Jamal, We sent against you servants of Ours, men of great prowess , meaning the Prince of the Believers (a.s) and his companions. They went to and fro in the lands, that is, they searched for you and killed you.
Then We gave you back the turn to prevail over them , meaning, We gave the Umayyads back the turn to prevail over the House of Muhammad (a.s) and We succored you through wealth and progeny and We made your band of greater number compared to Husain Ibn ‘Ali (a.s) and his companions, when the womenfolk of the House of Muhammad (a.s) were taken hostage. If you should do good, you do good for your own selves and if you should do evil, you do it against yourselves.
So when the second promise comes to pass , meaning the Qā'im (a.s) and his companions, so they may make discountenance you , meaning rendering their countenances dark, and so they may enter the Mosque as they entered the first time , meaning, the Messenger of Allah and his companions, and to destroy utterly that which they ascended to , that is, they will prevail over you and will kill you.
Then the verse shifts to the House Of Muhammad (a.s) and says, Perchance your Lord will have mercy on you, that is, He will grant you victory over your enemy. Then it addresses the Umayyads, If you again return, We will return, that is, If you return with al-Sufyāni, We will return with the Qā'im from the House of Muhammad (a.s).