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.
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
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.