this , it seemed , had happened while tom was imprisoned at ardsmuir ; she had sent him word , before her execution , telling him of malva 's birth , and that she was confiding care of the children to edgar 's wife .