It is recommended to take cannabis at least an hour before you sleep. Do not take it immediately before your bedtime.