Protein has many benefits and having a certain amount of it before sleep optimizes its advantages. Slow-digesting protein in a bedtime shake prolongs the duration of muscle protein synthesis, building muscles as you sleep. A protein shake at bedtime can preemptively fuel you for the day ahead.