All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
The statement that one must marry a civil marriage before the Islamic one is not true, but if the marriage is concluded while fulfilling the Islamic conditions and then the people need to document it in the civil courts [or in the civil registration], then there is nothing wrong with that.
Nonetheless, the rights that might result from such a civil registration and which contradict the Sharia are not taken into consideration regardless of whether they are in favor of the wife against her husband or vice versa. For more benefit, please refer to fatwa 89727.
If the man-made courts issue a divorce, then it is not considered Islamically, and this does not lead to separation between the husband and wife.
If the Muslims in your country want to refer the matter to a court, then they must refer the case to Islamic Centers and similar authorities that are responsible for the affairs of Muslims, but it is not permissible to take the matter to man-made courts except in a case of necessity.
For more benefit, please refer to fatwa 276001.
Allah knows best.