Kitab Ali (کتاب علی) or the Book of Ali is a compilation of Muhammad's sayings that Ali is said to have written as Muhammad dictated it to him. It is said that the jurist of Mecca was aware of this text around the beginning of the second century and was certain that Ali was the author. Regarding the book's content, it is claimed to have included all the information people might have needed on the topics of lawfulness (halal) and unlawfulness (haram), including a thorough penal code that took into consideration even minor physical injuries. Kitab Ali is frequently associated with al-Jafr, a book that, according to Shia belief, was given to Ali by Muhammad and is thought to contain esoteric lessons for Muhammad's household.