You can either sign a prenup or do a declaration. Meanwhile, keep all the record to show the money is yours before marriage so that this money is traceable when its ownerhsip is in question. In California, upon divorce not only you will get this money back but you will also get the appreciation. This was decided in a case, Marriage of Moore, in 1960's.