It is not known whether he had a specific source, either literary or oral, for this tale.
Sapia Liccarda is an Italian literary fairy tale written by Giambattista Basile in his 1634 work, the Pentamerone.