Hi Flynbuy,
I have not encountered this in AA, but through my studies of philosophy and literature when I was much younger and many times since. Here is a website that investigates it, if you are interested in different sources:
Know Thyself | Man's Ancient Quest for Self Knowledge
Your Shakespeare quote is also right there if you scroll down the menu at the right hand side.