This is just another falsely translated allegation. The correct translation is :
“I am with the Messenger and I will answer, I will sometimes leave my intention (Iradah) and sometimes fulfill it”
This does not in any way refer to right or wrong rather is referring to the decree of Allah and an example is the people of Jonah(as). Allah removed their punishment since they repented.
Allah states:
Even if there come to them every Sign, till they see the grievous punishment.Why was there no other people, save the people of Jonah, who should have believed so that their belief would have profited them? When they believed, We removed from them the punishment of disgrace in the present life, and We gave them provision for a while.(Chapter 10 Verse 98-99)
The revelation is in the same manner. Allah always forgives when one repents.