Please look at the following question:
My mother asked___ with me.
A. what was the wrong B. what the matter was C. what matter was D. what was the matter
"D" is right because in spoken language poeple often say "what's the matter" and it is analysed that here "what" is a subject.
And in the sentence" He asked what the matter was" the "matter" means substance. Right?
But I noticed a sentence "He came in and asked what the matter was with us." Is it right? Thanks.