In English, we typically use a comma to separate a quotation from an attributive tag—a tag that tells the reader who is speaking or acting (e.g., “he thought” or “said he”)—even if the quote would usually end in a period. However, if the quote is a question, a question mark needs to be used to show the reader that the sentence is an interrogative sentence.
The comma between the quote and the attributive tag is not required, and should be removed.
The same rule applies to exclamation points. See the examples below: