On which occasion did Salat become obligatory (Farz)?

✔ A. Miraj (Ascension)
B. Migration (Hijrah)
C. Boycott of Banu Hashim
D. Visit to Taif