Pitubo is right, it's from Frank Herbert's masterwork Dune, and it's not DMT but magic mushrooms. A quote from his good friend Paul Stamets in 'Mycelium Running' (p.123):
"Frank went on to tell me that much of the premise of Dune - the magic spice (spores) that allowed the bending of space (tripping), the giant worms (maggots digesting mushrooms), the eyes of the Fremen (the cerulean blue of Psilocybe mushrooms), the mysticism of the female spiritual warriors, the Bene Gesserit (influenced by tales of Maria Sabina and the sacred mushroom cults of Mexico) - came from his perception of the fungal life cycle, and his imagination was stimulated through his experiences with the use of magic mushrooms."