Final answer:
The book in which Muhammad's words and teachings were collected is the Hadith, which forms the basis for Islamic law.
Step-by-step explanation:
The book in which Muhammad's words and teachings were collected is the Hadith. The Hadith is a collection of the words, actions, and teachings of the Islamic Prophet Muhammad and his immediate successors. It, along with the Quran, forms the fundamental basis for Islamic law.