This question already has an answer here:
Should a question mark appear at the end of question (and before the end quotation mark)? An example is "How are you feeling today," he asked. I'm getting conflicting advice.
The correct form is
This is because the part in quotation marks is a question, so it should have a question mark, but the entire sentence is simply a statement.