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

After working on the yard for three hours, the rain began.
A) 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.
C) 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.