Sharon Salzberg said this quote

Evolutionary biologists tell us we have a “negativity bias” that makes our brains remember negative events more strongly than positive ones. So when we’re feeling lost or discouraged, it can be very hard to conjure up memories and feelings of happiness and ease.