Other translations of verse 54
When those who believe in Our verses come to you, say, “Peace be upon you. Your Lord has decreed mercy upon Himself; whoever among you commits a sin out of ignorance then repents afterwards and mends his ways, then Allah is indeed All-Forgiving, Most Merciful.”
When those who believe in Our Ayât (proofs, evidence, verses, lessons, signs, revelations, etc.) come to you, say: "Salâmun ‘Alaikum" (peace be on you); your Lord has written (prescribed) Mercy for Himself, so that if any of you does evil in ignorance, and thereafter repents and does righteous good deeds (by obeying Allâh), then surely, He is Oft-Forgiving, Most Merciful.
And when those who believe in Our revelations come unto thee, say: Peace be unto you! Your Lord hath prescribed for Himself mercy, that whoso of you doeth evil through ignorance and repenteth afterward thereof and doeth right, (for him) lo! He is Forgiving, Merciful.
When those come to thee who believe in Our signs, Say: "Peace be on you: Your Lord hath inscribed for Himself (the rule of) mercy: verily, if any of you did evil in ignorance, and thereafter repented, and amend (his conduct), lo! He is Oft-forgiving, Most Merciful.
And when those who believe in Our communications come to you, say: Peace be on you, your Lord has ordained mercy on Himself, (so) that if any one of you does evil in ignorance, then turns after that and acts aright, then He is Forgiving, Merciful.
And when the ones who believe in Our signs come to you, then say, "Peace be upon you. Your Lord has prescribed for Himself (the) mercy, that whoever of you does an odious deed in ignorance, thereafter repents even after that and acts righteously, then (say) that He is Ever-Forgiving, Ever-Merciful."