The correct option is A before I go to bed
An adverb clause is a group of words containing a subject and a verb,
and it functions as an adverb, by modifying an adjective, verb or an
adverb. Adverb clauses generally begin with a subordinate conjunction
(since, because, while, etc.).
Option A is correct because it is an
adverb clause of time, 'before' is a subordinate conjunction that refers to time.
Option B is incorrect because it is a phrase. Moreover, it is irrelevant here, no action can be done in consciousness while one is sleeping.
Similarly, option C is incorrect because it
is a phrase, not a clause.
Option D is incorrect because the answer lies in A.