Ernest Hemingway said this quote

So far, about morals, I know only that what is moral is what you feel good after and what is immoral is what you feel bad after.