As far as i comprehend, you mean to say that you had hired a replacement against one of your employees who had resigned from his services. and now your employee has expressed to continue with his services and not exit.
Under such a circumstance, the employer needs to first decide if he wants to retain the services of the exiting employee. If yes, then you can ask the replacement candidate to check with his employer if he can be retained, if not then you can revoke the offer and pay compensation in lieu of it; or make an offer for any other available suitable role for the new candidate.
If the employer wants to let the old employee go, then just accept his resignation and proceed for his exit; and make way for the new candidate.
Regards
Rahul Chhabra