Ruling on consuming caffeine
Question

                Can caffeine be considered as Haram(not allowed for Muslims) · since it is considered alkaloid and it is in the same group as Nicotine, Cocaine, Morphine, LSD.....? Also excessive intake of caffeine can cause restlessness, insomnia, heart irregularities and delirium.
Praise be to Allah.Undoubtedly anything that 
          is harmful is haraam. Hence Allaah forbade alcohol because it affects 
          the mind, and smoking is forbidden because it causes widespread harm 
          and diseases. It is also known that there are permissible drinks which 
          do not cause harm, such as coffee and tea, which usually do not cause 
          harm and are usually drunk for relaxation, so there is nothing wrong 
          with drinking them. And there are other good drinks such as milk and 
          fruit juices. If some of those things which are nowadays known as refreshments 
          cause harm, then they should be considered an extravagance.