Avicenna
While he was imprisoned in the castle of Fardajan near Hamadhan, Avicenna wrote his famous "Floating Man" – literally falling man – a thought experiment to demonstrate human self-awareness and the substantiality and immateriality of the soul. Avicenna believed his "Floating Man" thought experiment demonstrated that the soul is a substance, and claimed humans cannot doubt their own consciousness, even in a situation that prevents all sensory data input. The thought experiment told its readers to imagine themselves created all at once while suspended in the air, isolated from all , which includes no sensory contact with even their own bodies. He argued that, in this scenario, one would still have self-consciousness. Because it is conceivable that a person, suspended in air while cut off from sense experience, would still be capable of determining his own existence, the thought experiment points to the conclusions that the soul is a perfection, independent of the body, and an immaterial substance. The conceivability of this "Floating Man" indicates that the soul is perceived intellectually, which entails the soul's separateness from the body. Avicenna referred to the living human intelligence, particularly the active intellect, which he believed to be the hypostasis by which God communicates truth to the human mind and imparts order and intelligibility to nature. Following is an English translation of the argument:One of us (i.e. a human being) should be imagined as having been created in a single stroke; created perfect and complete but with his vision obscured so that he cannot perceive external entities; created falling through air or a void, in such a manner that he is not struck by the firmness of the air in any way that compels him to feel it, and with his limbs separated so that they do not come in contact with or touch each other. Then contemplate the following: can he be assured of the existence of himself? He does not have any doubt in that his self exists, without thereby asserting that he has any exterior limbs, nor any internal organs, neither heart nor brain, nor any one of the exterior things at all; but rather he can affirm the existence of himself, without thereby asserting there that this self has any extension in space. Even if it were possible for him in that state to imagine a hand or any other limb, he would not imagine it as being a part of his self, nor as a condition for the existence of that self; for as you know that which is asserted is different from that which is not asserted and that which is inferred is different from that which is not inferred. Therefore the self, the existence of which has been asserted, is a unique characteristic, in as much that it is not as such the same as the body or the limbs, which have not been ascertained. Thus that which is ascertained (i.e. the self), does have a way of being sure of the existence of the soul as something other than the body, even something non-bodily; this he knows, this he should understand intuitively, if it is that he is ignorant of it and needs to be beaten with a stick [to realize it].

Question: What did Avicenna write while he was imprisoned?
Answer: "Floating Man"