When people asked the Prophet ﷺ about the spirit, the Quran told him to answer that the spirit is of the command of his Lord and that of knowledge people have been given only a little. Islam therefore does not claim to explain the nature of the soul. It teaches that Allah created the human being from clay and breathed into him of His spirit, and then gave people hearing, sight and hearts. A hadith in Sahih al-Bukhari says that after the stages of the child's creation in the womb, the soul is breathed into him.
At death, Allah takes the souls, as He does in sleep, keeping the soul of the one whose death He has decreed and sending back the others until an appointed time. The Quran addresses the soul at peace: 'return to your Lord, well-pleased and pleasing'. Muslims do not believe that the soul enters another body after death; it awaits the resurrection in barzakh, which is also why Islam rejects reincarnation.
Muslims find this useful for daily life: if a person is more than a body, then caring for the heart, which is the inner life, is as real a duty as caring for health. It is also honest. Questions about consciousness and the inner self are still very open in science and philosophy, and Islam answers with humility about what is unknown and with confidence in what is revealed, that the soul is a trust from Allah and will return to Him.