To describe Buddhism fairly: the Buddha taught the Four Noble Truths, that life involves suffering, that suffering comes from craving, that it can end, and that the Eightfold Path leads to its end. Buddhists follow precepts such as not killing and not lying, believe in karma and rebirth, and seek nirvana. The Buddha is usually seen as a teacher and not a god, and Buddhist traditions such as Theravada, Mahayana and Vajrayana differ greatly in practice.
The Islamic answer differs on the foundations. For Muslims, the universe has a Creator who is near and who answers prayer, and human beings are His servants and trustees. Life is one test, followed by resurrection and judgment, and the hope of the believer rests in Allah's forgiveness and mercy and not in self-liberation alone. Suffering is treated not as an illusion to escape but as part of the trial, to be met with patience, with the words 'we belong to Allah and to Him we return'.
There is real common ground. The Prophet ﷺ said that Allah does not show mercy to those who do not show mercy to people, and the Quran praises patience, charity and restraint of the self. The Quran does not mention the Buddha, though it says that Allah sent messengers to nations some of whom it has not named, so Muslims neither claim nor deny that he was one, and mainstream scholars avoid speculation without a text.