Change into indirect speech : Sajid said , if i work hard i will succeed ?

A ) He said that if he works hard he will succeed

B ) He said that if he worked hard he would succeed ✅

C ) He said that if he was working hard i will succeed

D ) He said that if he had worked hard i would have succeeded