Which sentence uses the passive voice?

A. The rain continued until dawn.
B. The tree was planted by Mary.
C. Lies destroy friendship.
D. John searched for a job