The key to keeping bananas nice and ripe is to store them in the fridge. The climate of the fridge slows down the ripening process, allowing you to enjoy your bananas for longer.
However, putting them in the fridge before they're ripe can ruin the taste and lead to the banana tasting bitter. It also likely won't ripen and will remain too hard to enjoy.