Jesus says in verse 44 of the same chapter :
These are the words which I spake unto you, while I was yet with you, that all things must be fulfilled, which were written in the law of Moses, and in the prophets, and in the psalms, concerning me. [Luke 24:44, KJV]
Jesus alludes to all that he has taught them in all the time he spent with them. And he alludes to all the scriptures : the law of Moses, the prophets and the psalms - all of the written documentation of scripture.
Thus it is written . . . . .
Jesus is not quoting any particular place. He is summarising all that is written.