After Solomon with the help of the demons had completed the Temple, the rulers, among them the Queen of Sheba, who was a sorceress, came from far and near to admire the magnificence and art of the building, and no less the wisdom of its builder.

One day an old man appeared before Solomon to complain of his son, whom he accused of having been so impious as to raise his hand against his father and give him a blow. The young man denied the charge, but his father insisted that his life be held forfeit. Suddenly Solomon heard loud laughter. It was the demon Ornias, who was guilty of the disrespectful behavior. Rebuked by Solomon, the demon said: "I pray thee, O king, it was not because of thee I laughed, but because of this ill-starred old man and the wretched youth, his son. For after three days his son will die untimely, and, lo, the old man desires to make away with him foully." Solomon delayed his verdict for several days, and when after five days he summoned the old father to his presence, it appeared that Ornias had spoken the truth.