Which corrects the misplaced or dangling modifier in the sentence below?

After working on the yard for three hours, the rain began.
Responses
A The rain began after working on the yard for three hours.The rain began after working on the yard for three hours.
B After Mira worked on the yard for three hours, it began to rain.After Mira worked on the yard for three hours, it began to rain.
C After working on the yard for three hours, the rain began to fall softly.After working on the yard for three hours, the rain began to fall softly.
D After working on the yard for three hours, the rain began to fall on Mira.

B After Mira worked on the yard for three hours, it began to rain.