Wajib is the former thing that is necessary. It is a slight difference between farz and wajib while both of them are necessary.
What is the difference between fard and wajib?
Farz and wajib differentiate by Muslim scholars. The difference is that the farz is the latter being obligatory and wajib is the former thing which is necessary. It is a slight difference while both of them are necessary.