Iain M. Banks said this quote

It gripped her hand gently. 'Regret is for humans,' it said.She laughed. 'Really?'The machine shrugged and let go of her hand. 'Oh, no. It's just something we tell ourselves.