Ibn Qayyim in "Medicine of the Prophet" identified many causes of headaches. These include:
- When one of the four essential conditions (coldness, hotness, dryness and wetness) becomes predominant
- Ulcers of the stomach because the cephalic (relating to the head) nerves and the stomach are connected
- Thick flatulence might accumulate in the stomach then later ascend to the head
- A tumour in the gastric veins that cause pain in the head, because the stomach and the head are connected
- When the stomach is full of food if some of the food remains undigested
- After sexual intercourse because the body will then be weakened and thus exposed to the heat of the air
- After vomiting due to excessive dryness, or to accumulating flatulence that ascends to the head from the stomach
- Hot weather
- Hot air
- Cold weather and from the vapor that accumulates in the head and which is unable to decompose
- Lack of sleep
- Pressure exerted on the head such as when one carries a heavy object on his head.
- Excessive talking sometimes weakens the mind
- Excessive movements and sports activity
- Sadness, depression, obsession and evil thoughts
- Excessive hunger because flatulence accumulates in the stomach and ascends to the brain
- A tumour in the cerebral lining sometimes feel as if hammers are constantly pounding in the head
- A fever, because of the intense heat that the body suffers as a result