Where will you live between the time of selling and buying a home? If it’s a few days to a month you may be able to rent back your property to the new homeowners, allowing time for you to close on your new home and move. If not, you may have to look into short term rentals, staying in a hotel or with friends and family.
In this case it depends on the buyers agreeing to this as they more than likely want to move into the home as soon as possible. The terms of rent and length of stay would have to be outlined in the contract and rental insurance may have to be purchased to cover you during the time you’re renting the home from the homeowners.