Surah Al-Anfal, ayah 70

8:70

يَٰٓأَيُّهَا ٱلنَّبِيُّ قُل لِّمَن فِيٓ أَيۡدِيكُم مِّنَ ٱلۡأَسۡرَىٰٓ إِن يَعۡلَمِ ٱللَّهُ فِي قُلُوبِكُمۡ خَيۡرٗا يُؤۡتِكُمۡ خَيۡرٗا مِّمَّآ أُخِذَ مِنكُمۡ وَيَغۡفِرۡ لَكُمۡۚ وَٱللَّهُ غَفُورٞ رَّحِيمٞ ٧٠

Yā'ayyuhan-nabiyyu qul liman fī aydīkum minal-asrā in ya'lamillāhu fī qulūbikum khayran yu'tikum khayram mimmā ukhidha minkum wayaghfir lakum wallāhu ghafūrur rahīm

O Prophet, say to whoever is in your hands of the captives, "If Allāh knows [any] good in your hearts, He will give you [something] better than what was taken from you, and He will forgive you; and Allāh is Forgiving and Merciful."