UPDATE: its been pointed out this this quote is a mis-attribution. It was actually said by Attlee's biographer Frances Beckett summarising his views. This is the quote I think he was referring to - it still all makes sense to me.
“In a civilised community, although it may be composed of self-reliant individuals, there will be some persons who will be unable at some period of their lives to look after themselves, and the question of what is to happen to them may be solved in three ways – they may be neglected, they may be cared for by the organised community as of right, or they may be left to the goodwill of individuals in the community. The first way is intolerable, and as for the third: Charity is only possible without loss of dignity between equals. A right established by law, such as that to an old age pension, is less galling than an allowance made by a rich man to a poor one, dependent on his view of the recipient’s character, and terminable at his caprice.”- The Social Worker 1920