While your home is only required to be left in broom-clean condition, it’s common courtesy to either thoroughly clean the home yourself or to hire a cleaning company.
Ideally, the final cleaning should occur AFTER you’ve moved all your belongings out but before the final buyer walk-through. The walkthrough usually occurs the night before closing or the morning of closing.