The claims that ‘Ali fought against the Jinn are baseless lies
Question

Is it true that Imaam ‘Ali (may Allaah be pleased with him) fought against the jinn? This is narrated in the book Ghazawaat al-Imaam ‘Ali, which says that he fought them until he sent them down to the seventh earth. What is your opinion of this book?
Praise be to Allah.All of this is baseless. He did not fight the jinn and no such thing happened at all. Rather this is false and is one of the lies and fabrications that people have invented.  Abu’l-‘Abbaas Shaykh al-Islam Ibn Taymiyah (may Allaah have mercy on him) stated this clearly and said: “It is a lie which has no foundation. It is one of the false stories fabricated by the liars.”