The text does not appear to exploit different meanings of a word or similar-sounding words. It seems to be an idiomatic expression or proverb reflecting on the enduring relationship between parents and their children, specifically noting a perceived difference in the relationship with sons and daughters after marriage.
A son is a son ' till he gets him a wife ; a daughter ' s a daughter all her life .