After Muhammad left Mecca because his teachings were not widely accepted, where did he go?

A.
Baghdad

B.
Medina

C.
Cairo

D.
Constantinople