What is the correct indirect speech of the sentence . He said to me , will you accompany me ?

A ) He asked me if I would accompany him ✅

B ) He asked me if I will accompany him.

C ) He said to me that would i accompany him

D ) He said to me if I will accompany him