Which was the first capital of Islamic commonwealth?

Which was the first capital of Islamic commonwealth?

A. Makkah
B. Madina (correct)
C. Taaif
D. Khyber