The correct answer is: D. went / was lying

The verb tenses in the sentence must agree. The sentence is in the past tense, so the verbs "went" and "was lying" are both correct. The verb "lies" is in the present tense, and the verb "goes" is in the present tense. These verbs do not agree with the tense of the sentence, so they are incorrect.

The verb "is lying" is in the present progressive tense. This tense is used to describe actions that are happening at the moment of speaking. In this sentence, the action of lying is not happening at the moment of speaking, so the verb "is lying" is incorrect.

The verb "was lying" is in the past progressive tense. This tense is used to describe actions that were happening at a specific time in the past. In this sentence, the action of lying was happening at a specific time in the past, so the verb "was lying" is correct.