In which Hijri year Hajj was made compulsory?

In which Hijri year Hajj was made compulsory?

A. 8 Hijri
B. 9 Hijri
C. 10 Hijri
D. None of them