It's based on the "Dreamquest of Unknown Kadath" but the part about taking "herbs" is also mentioned in "The Silver Key" and "Celephais" where people are trying to stay asleep longer to accomplish something in a dream state...