As far as I comprehend, you mean to say that you had hired a replacement for one of your employees who had resigned from his services, and now your employee has expressed a desire 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 with his exit, making way for the new candidate.
Regards, Rahul Chhabra