This story is from my grandfather! Variants found in the recent موسوعة الرقائق والأدب and in Naestri Sastri's (d.1909 CE) Indian Tales.