Were the nails driven through his hands and feet before or after he died?
No nails were driven through his hands or feet. This is a mystical gift given by God. You can read the detailed research on stigmata at the following link.
Mystical Stigmata