What you described sounds like a sensory experience that felt very real to you, but it's not possible for me to definitively say whether it was a hallucination or not.
Hallucinations can occur in different senses, including visual, auditory, tactile (touch), olfactory (smell), and gustatory (taste). They can be vivid and lifelike, making it challenging to distinguish them from real experiences. Hallucinations are associated with various conditions, including but not limited to schizophrenia, schizoaffective disorder, bipolar disorder with psychotic features, and some other medical conditions.
However, it's important to note that isolated incidents of unusual experiences or sensory perceptions may not necessarily indicate a mental health condition. Many factors can contribute to such experiences, including stress, sleep disturbances, fever, medications, or even simply being in a state between sleep and wakefulness (hypnagogic or hypnopompic experiences).
If you're concerned about this experience or if it continues to happen, it's crucial to reach out to a qualified healthcare professional, such as a psychiatrist or psychologist. They can provide a proper evaluation, consider your medical history, and offer the appropriate guidance and support.
Additionally, maintaining good sleep hygiene practices can be helpful, such as ensuring a regular sleep schedule, creating a comfortable sleep environment, and avoiding substances that can disrupt sleep, like caffeine or alcohol before bedtime.
Always prioritize your mental health and seek professional advice if you have any concerns or distressing experiences.