Hazrat Ali (may Allah be pleased with him) said that the Book of Allah takes precedence over analogy.