Clone
Class(es)
Casting Time
Range
Target
One living creature
Components:
diamond worth at least 1,000 gold and at least 1 cubic inch of flesh from the target, consumed by the spell; vessel worth at least 2,000 gold which can be sealed and is large enough to hold the target
Duration:
Instantaneous
This spell grows a duplicate of the target that remains inert indefinitely as long as its vessel is sealed. The clone grows inside the sealed vessel and matures over the course of 120 days. You can choose to have the clone be a younger version of the target.
Once the clone has matured, when the target dies its soul is transferred to the clone so long as it is free and willing. The clone is identical to the target (except perhaps in age) and has the same personality, memories, and abilities, but it is without the target’s equipment. The target’s original body cannot be brought back to life by magic since its soul now resides within the cloned body.
Source