Here the 1874 RLDS edition omitted the repeated the before resurrection. This change may have been prompted by the reading earlier in verse 11 where the 1858 Wright edition accidentally omitted the the before resurrection. The 1874 RLDS edition derives, at least in part, from the Wright edition; the 1874 compositor, having set “between death and resurrection of the body” in verse 11, may have been led to set the same here in verse 21. In any event, the 1908 RLDS edition restored the correct reading with the the before resurrection in both verses 11 and 21.
Summary: Maintain the occurrence of the before resurrection in Alma 40:21 (“there is a space between death and the resurrection of the body”).