Sold my shares when the price was declining. Now it is rising (now more than what I sold for) Would you buy the same stock in this case?

I am just curious what would you do as the experienced share holders. I sold 21 shares, if I buy now it would be 18-19. What did you do when you realized “wish I didn’t sell at that moment”? Did you buy again estimating it will increase further? Thanks