Welcome from me too!
Terry is very well read and has often admitted that he doesn't remember where he got a phrase or a name from (Rincewind being a good example). Chances are he read it somewhere.
Interestingly, I just Googled the phrase and Urban Dictionary says it's a Northern English phrase, while another site says it's Kentish.
"Goodness is about what you do. Not what you pray to."