The direct object of say can be a noun, a that-clause (that can be omitted in informal styles) or an indirect question (in negatives and questions when the information is not actually reported):
The to-infinitive is often used in non-finite defining relative clauses after ordinal numbers (the first, the second etc.), superlatives (the best, the most beautiful etc.) and after next, last and only: