18:81

فَأَرَدْنَا أَن يُبْدِلَهُمَا رَبُّهُمَا خَيْرًا مِّنْهُ زَكَاةً وَأَقْرَبَ رُحْمًا

Transliteration:

Faaradna an yubdilahuma rabbuhuma khayran minhu zakatan waaqraba ruhman

Word by Word:

So we intended that would change for them their Lord, a better than him (in) purity and nearer (in) affection.

Translations:

and so we desired that their Sustainer grant them in his stead [a child] of greater purity than him, and closer [to them] in loving tenderness.

"So we desired that their Lord would give them in exchange (a son) better in purity (of conduct) and closer in affection.

And we intended that their Lord should change him for them for one better in purity and nearer to mercy.

So We intended that their Lord might give them in his place one better in purity and nearer to mercy.

So we intended that their Lord should substitute for them one better than him in purity and nearer to mercy.