Did this take place in a Western, developed country? I only ask because I wonder which legal systems in which countries consider a “nikah nama” a legally binding contract. Instead of getting a couple of mullahs and a calligrapher, why not just hire a couple of lawyers and suss out a formal prenuptial agreement that doesn’t conflict with your state’s divorce laws?