I will add that there is a process called a "rent back" or a "lease back" where the seller pays the new owner their principle, interest, taxes, and insurance (called PITI for short) if they need to stay after the close of escrow. This should be negotiated as soon as the situation is known, because in most moves the situation is more like a game of dominoes. If the seller needs to stay, then the buyer cannot move in, and perhaps the person moving into the buyer' s home cannot move either.
Plan ahead, be fair, and protect yourself.
Sara Mehrpouyan, CDPE
Best of luck to you!