In an English composition, I extracted some original sentences from the textbook, and the teacher said that the source of the original sentences should be indicated.
Well, yes, after the author points this out, add (author's name and year) at the end of the sentence. Remember to put brackets. This is a reference. Borrowing others' opinions in the paper, what is not indicated in the academic sense is plagiarism, so professional academic papers must have references.