So we intended that their Lord should substitute for them one better than him in purity and nearer to mercy.
The Saheeh International Quran Translation
فَأَرَدْنَآ أَن يُبْدِلَهُمَا رَبُّهُمَا خَيْرًا مِّنْهُ زَكَوٰةً وَأَقْرَبَ رُحْمًاSo we intended that their Lord should substitute for them one better than him in purity and nearer to mercy.