He asked his brother if he was going away for long.
When we change a sentence into indirect speech we first change the sentence(question) into Statement. Inverted commas are removed, the tense is changed into past tense, said is changed into asked etc..