At-Talaq
65:2

At-Talaq 2

فَإِذَا بَلَغْنَ أَجَلَهُنَّ فَأَمْسِكُوهُنَّ بِمَعْرُوفٍ أَوْ فَارِقُوهُنَّ بِمَعْرُوفٍ وَأَشْهِدُوا ذَوَيْ عَدْلٍ مِنْكُمْ وَأَقِيمُوا الشَّهَادَةَ لِلَّهِ ۚ ذَٰلِكُمْ يُوعَظُ بِهِ مَنْ كَانَ يُؤْمِنُ بِاللَّهِ وَالْيَوْمِ الْآخِرِ ۚ وَمَنْ يَتَّقِ اللَّهَ يَجْعَلْ لَهُ مَخْرَجًا

Fa izea balaagna acalahunna fa amsikoohunna bi maa’roofin avfearikoohunna bi maa’roofin va ashhidoo zavay aadlin minkum va akeemoosh shaheadata lilleah(lilleahi), zealikum yooaazu bihee man keana yoo’minu billeahi val yavmil eahir(eahiri), va man yattakılleaha yac’aal lahu maahracea(maahracan).

So when they (the wives that you have divorced) have reached their waiting time, then retain (lodge) them with kindness (based on your traditions and with goodness) or separate from them with kindness (set them free). And two from among you who are just should witness. Be a witness for Allah. The one who believes in Allah and the latter day (the reaching day of spirit of Allah before death) is admonished with this (is asked to this). And whoever is the owner of takwa (spiritual armor) towards Allah; (Allah) makes for him an exit (in the dargah of the Imam of the Time, which is the place where the spirit rises from, being separated from the body of a person who obeyed his holy teacher)

...