At least that is the story told at Fort Jefferson where he was imprisoned.
Muhammad= mem vav khet mem dalet = 40+6+8+40+4 = 98