well, hello to your daughter, and please thank her for posing an intriguing question

i've no idea where the phrase comes from... the only thing it reminds me of is John Denver ... but i *do know the name of the rhetorical device employed, if anyone cares:

antimetabole. i s'pose it'd also be a chiasmus of sorts, but antimetabole specifically denotes a reversal of terms, whereas a chiasmic passage only necessarily employs a grammatical reversal.