The four destitute friends go to a wise man who gives each one of them a magic shell to be placed on top of the turban, from a Tuti-nama (Tales of a Parrot): Forty-seventh Night
The fourth man digs at the spot where he dropped the shell, expecting jewels, but discovering mere iron, from a Tuti-nama (Tales of a Parrot): Forty-seventh Night