You sentences suggest that John wanted his wallet to be stolen.
John: My wallet was stolen.
He told me that his wallet was stolen.
Student or Learner
Can you tell me if there is a mistake in following sentence?
John:I had my wallet stolen.
He told me that he had had his wallet stolen.
In BrE, "I had/have had my wallet stolen" is perfectly acceptable to mean "My wallet was stolen".
I had my wallet stolen.
John told me he had his wallet stolen.
I have had my wallet stolen.
John told me he has had his wallet stolen.
I had had my wallet stolen several times before so I wasn't surprised when it happened again.
John told me he had had his wallet stolen several times before so he wasn't surprised ....
(I added the extra information to the third example because "had had" requires a time reference.)
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.
Your version is correct, but you could also say that John said his wallet had been stolen.