Best way to notify that a product is out of stock once it’s been in the cart for a while?

What would be the best way to notify a client that a product is out of stock after a while? For example, if someone placed a product that is in stock to their cart and just leaves it there without doing checkout, and after a few days the product becomes out of stock. What would be the best way to notify the user of this?