Moses asked for three days for consideration, which the king granted. During this time he prepared a certain mixture, and instructed his pupils to have it ready and apply it according to his directions, when he should be brought home senseless. He then appeared before the king, and desired to have his veins opened. The vital artery was missed, as he had anticipated, and the result was as he had foreseen. After his recovery, he fled from Egypt, taking refuge in a cave, where he wrote his Yad Hazakah (the " Strong Handw), consisting of fourteen divisions, typified by the word Yad. which also means fourteen.
Maimonides Escapes Egypt and Writes the Mishneh Torah
Folk legend of Maimonides