Cash is a guaranteed loss against inflation. Trying to time a recession just means you'll miss out on the inevitable rebound, so keep your money working.
Markets usually price in fear before the recession is official. Staying diversified and rebalancing beats trying to nail the perfect re-entry.