You're correct, but the question is what Jesus was referring to when he said, "It is finished," not "I thirst." Jesus was not quoting any scripture when he said, "It is finished."
All the Old Testament prophesies had been fulfilled with Christs death on the cross. His work on earth was finished.
The Promised Messiah
.
1. Genesis 3:15.....Seed of a woman (virgin birth).....Luke 1:35, Matthew 1:18-20
2. Genesis 3:15.....He will bruise Satan's head.....Hebrews 2:14, 1 John 3:18
3. Genesis 5:24....The bodily ascension to heaven illustrated....Mark 6:19
4. Genesis 9:26-27...The God of Shem will be the Son of Shem...Luke 3:36
5. Genesis 12:3...As Abraham's seed, will bless all nations...Acts 3:25,26
6. Genesis 12:7...The The Promise made made to Abraham's Seed...Galatians 3:16
7. Genesis 14:18...A priest after Melchizedek...Hebrews 6:20
8. Genesis 14:18........A King also........Hebrews 7:2
9. Genesis 14:18...The Last Supper foreshadowed...Matthew 26:26-29
10. Genesis 17:19.......The Seed of Isaac.......Romans. 9:7
11. Genesis 21:12 …Seed of Isaac…Romans 9:7, Hebrews 11:18
12. Genesis 22:8...The Lamb of God promised...John 1:29
13. Genesis 22:18...As Isaac's seed, will bless all nations...Galatians 3:16
14. Genesis26:2-5..The Seed of Isaac promised as the Redeemer..Hebrews11:18
15. Genesis 49:10...The time of His coming...Luke 2:1-7; Galatians 4:4
16. Genesis 49:10.......The Seed of Judah.......Luke 3:33
17. Genesis 49:10......Called Shiloh or One Sent......John 17:3
18. Genesis 49:10...To come before Judah lost identity...John 11:47-52
19. Genesis 49:10...To Him shall the obedience of the people be...John 10:16
20. Exodus 3:13,14........The Great "I Am".......John 4:26
21. Exodus 12:5...A Lamb without blemish...1 Pet. 1:19
22. Exodus 12:13...The blood of the Lamb saves Romans wrath...Romans. 5:8
23. Exodus 12:21-27...Christ is our Passover...1 Corinthians 5;7
24. Exodus 12:46...Not a bone of the Lamb to be broken...John 19:31-36
25. Exodus 13:2…Blessing to first born son…Luke 2:23
26. Exodus 15:2...His exaltation predicted as Yeshua...Acts 7:55,56
27. Exodus 15:11...His Character-Holiness...Luke 1:35; Acts 4:27
28. Exodus 17:6...The Spiritual Rock of Israel...1 Corinthians 10;4
29. Exodus 33:19...His Character-Merciful...Luke 1:72
30. Leviticus14:11...The leper cleansed-Sign to priesthood..Luke5:12-14; Acts 6:7
31. Leviticus16:15-17...Prefigures Christ's once-for-all death...Hebrews 9:7-14
32. Leviticus16:27...Suffering outside the Camp...Matthew 27:33; Hebrews 13:11, 12
33. Leviticus17:11...The Blood-the life of the flesh...Matthew 26;28; Mark 10:45
34. Leviticus17:11...It is the blood that makes atonement...1 John 3:14-18
35. Leviticus23:36-37...The Drink-offering: "If any man thirst." ..John 19:31-36
36. Numbers 9:12...Not a bone of Him broken...John 19:31-36
37. Numbers 21:9...The serpent on a pole-Christ lifted up...John 3:14-18
38. Numbers 24:8… Flight to Egypt…Matthew 2:14
39. Numbers 24:17...Time: "I shall see him, but not now."...Galatians 4:4
40. Numbers 24:17-19…A star out of Jacob…Matthew 2:2, Luke 1:33,78, Revelation 22:16
41. Deuteronomy 18:15..."This is of a truth that prophet."...John 6:14
42. Deuteronomy 18:15-16..."Had ye believed Moses, ye would believe me."...John 5:45-47
43. Deuteronomy 18:18...Sent by the Father to speak His word...John 8:28, 29
44. Deuteronomy 18:19...Whoever will not hear must bear his sin...John 12:15
45. Deuteronomy 21:13-23…As a prophet…John 6:14; 7:40, Acts 3:22,23
46. Deuteronomy 21:23...Cursed is he that hangs on a tree...Galatians 3:10-13
47. Ruth 4:4-9...Christ, our kinsman, has redeemed us...Ephesians 1:3-7
48. 1 Samuel 2:10...Shall be an anointed King to the Lord...Matthew 28:18; John 12:15
49. 2 Samuel 7:12...David's Seed...Matthew 1:1
50. 2 Samuel 7:14a...The Son of God... Luke 1:32
51. 2 Samuel 7:16...David's house established forever...Luke 3:31; Rev. 22:16
52. 2 Samuel 23:2-4…would be the “Rock”…1 Corinthians 10:4
53. 2 Samuel 23:2-4…would be as the “light of the morning”…Revelation 22:16
54. 2 Kings 2:11...The bodily ascension to heaven illustrated...Luke 24:51
55. 1 Chronicles 17:11...David's Seed...Matthew 1:1; 9:27
56. 1 Chronicles 17:12, 13a...To reign on David's throne forever...Luke 1:32, 33
57. 1 Chronicles 17:13a..."I will be His Father, He...my Son."...Hebrews 1:5
58. Job 19:23-27...The Resurrection predicted...John 5:24-29
59. Psalms 2:1-3...The enmity of kings foreordained...Acts 4:25-28
60. Psalms 2:2...To own the title, Anointed (Christ)...Acts 2:36
61. Psalms 2:6...His Character-Holiness...John 8:46; Rev. 3:7
62. Psalms 2:6...To own the title King...Matthew 2:2
63. Psalms 2:7...Declared the Beloved Son...Matthew 3:17
64. Psalms 2:7, 8...The Crucifixion and Resurrection intimated...Acts 13:29-33
65. Psalms 2:12...Life comes through faith in Him...John 20:31
66. Psalms 8:2...The mouths of babes perfect His praise...Matthew 21:16
67. Psalms 8:5, 6...His humiliation and exaltation...Luke 24:50-53; 1 Corinthians 15:27
68. Psalms 16:10...Was not to see corruption...Acts 2:31
69. Psalms 16:9-11...Was to arise from the dead...John 20:9
70. Psalms 17;15...The resurrection predicted...Luke 24:6
71. Psalms 22:1...Forsaken because of sins of others...2 Corinthians 5:21
72. Psalms 22:1...Words spoken from Calvary, "My God..." Mark 15:34
73. Psalms 22:2...Darkness upon Calvary...Matthew 27:45
74. Psalms 22:7...They shoot out the lip and shake the head...Matthew 27:39
75. Psalms 22:8.." He trusted in God, let Him deliver Him "...Matthew 27:43
76. Psalms 22:9......Born the Savior......Luke 2:7
77. Psalms 22:14...Died of a broken (ruptured) heart...John 19:34
78. Psalms 22:14,15...Suffered agony on Calvary...Mark 15:34-37
79. Psalms 22:15........He thirsted........John 19:28
80. Psalms 22:16...They pierced His hands and His feet....John 19:34,37;20:27
81. Psalms 22:17,18...Stripped Him before the stares of men...Luke 23:34,35
82. Psalms 22:18.....They parted His garments.....John 19:23,24
83. Psalms 22:20,21...He committed Himself to God...Luke23:46
84. Psalms 22:20,21..Satanic power bruising the Redeemer's heel.. Hebrews 2:14
85. Psalms 22:22.....His Resurrection declared.....John 20:17
86. Psalms 22:27...He shall be the governor of the nations...Col 1:16
87. Psalms 22:31......"It is finished"......John 19:30
88. Psalms 23:1...."I am the Good Shepherd"....John 10:11
89. Psalms 24:3......His exaltation predicted......Acts 1:11; Phil. 2:9
90. Psalms 27:12…Accused by false witnesses…Matthew 26:60,61, Mark 14:57,58
91. Psalms 30:3......His resurrection predicted......Acts 2:32
92. Psalms 31:5..."Into thy hands I commit my spirit"...Luke 23:46
93. Psalms 31:11...His acquaintances fled from Him...Mark 14:50
94. Psalms 31:13...They took counsel to put Him to death...John 11:53
95. Psalms 31:14,15..." He trusted in God, let Him deliver him"...Matthew 27:43
96. Psalms 34:20.....Not a bone of Him broken.....John 19:31-36
97. Psalms 35:11....False witnesses rose up against Him....Matthew 26:59
98. Psalms 35:19...He was hated without a cause...John 15:25
99. Psalms 38:11.....His friends stood afar off.....Luke 23:49
100. Psalms 40:2-5...The joy of His resurrection predicted...John 20:20
101. Psalms 40:6-8....His delight-the will of the Father....John 4:34
102. Psalms 40:9....He was to preach the Righteousness in Israel....Matthew 4:17
103. Psalms 40:14...Confronted by adversaries in the Garden...John
104. Psalms 41:9.....Betrayed by a familiar friend.....John 13:18
105. Psalms 45:2...Words of Grace come from His lips.. Luke 4:22
106. Psalms 45:6...To own the title, God or Elohim...Hebrews 1:8
107. Psalms 45:7...A special anointing by the Holy Spirit...Matthew3:16; Hebrews1:9
108. Psalms 45:7,8...Called the Christ (Messiah or Anointed)...Luke 2:11
109. Psalms 49-15…His Resurrection…Acts 2:27; 13:35, Mark 16:6
110. Psalms 55:12-14...Betrayed by a friend, not an enemy...John 13:18
111. Psalms 55:15...Unrepentant death of the Betrayer...Matthew 27:3-5; Acts 1:16-19
112. Psalms 68:18...To give gifts to men...Ephesians 4:7-16
113. Psalms 68:18...Ascended into Heaven...Luke 24:51
114. Psalms 69:4...Hated without a cause...John 15:25
115. Psalms 69:8...A stranger to own brethren...Luke 8;20,21
116. Psalms 69:9...Zealous for the Lord's House...John 2:17
117. Psalms 69:14-20...Messiah's anguish of soul before crucifixion...Matthew 26:36-45
118. Psalms 69:20..."My soul is exceeding sorrowful."...Matthew 26:38
119. Psalms 69:21...Given vinegar in thirst...Matthew 27:34
120. Psalms 69:26...The Savior given and smitten by God...John 17:4; 18:11
121. Psalms 72:10,11...Great persons were to visit Him...Matthew 2:1-11
122. Psalms 72:16...The corn of wheat to fall into the Ground...John 12:24
123. Psalms 72:17...His name, Yinon, will produce offspring...John 1:12,13
124. Psalms 72:17...All nations shall be blessed by Him...Acts 2:11,12,41
125. Psalms 78:1.2...He would teach in parables...Matthew 13:34-35
126. Psalms 78:2b...To speak the Wisdom of God with authority...Matthew 7:29
127. Psalms 88:8...They stood afar off and watched...Luke 23:49
128. Psalms 89:26...Messiah will call God His Father...Matthew 11:27
129. Psalms 89:27...Emmanuel to be higher than earthly kings...Luke 1:32,33
130. Psalms 89:35-37...David's Seed, throne, kingdom endure forever...Luke 1:32,33
131. Psalms 89:36-37...His character-Faithfulness...Rev. 1:5
132. Psalms 90:2...He is from everlasting (Micah 5:2)...John 1:1
133. Psalms 91:11,12...Identified as Messianic; used to tempt Christ...Luke 4;10,11
134. Psalms 97:9...His exaltation predicted...Acts 1:11;Ephesians 1:20
135. Psalms 100:5...His character-Goodness...Matthew 19:16,17
136. Psalms 102:1-11...The Suffering and Reproach of Calvary...John 21:16-30
137. Psalms 102:16…Son of Man comes in Glory…Luke 21:24
Revelation 12:5-10
138. Psalms 102:25-27...Messiah is the Preexistent Son...Hebrews 1:10-12
139. Psalms 109:4…Prays for His enemies…Luke 23:34
140. Psalms 109:7,8…Another to succeed Judas…Acts 1:16-20
141. Psalms 109:25...Ridiculed...Matthew 27:39
142. Psalms 110:1...Son of David...Matthew 22:43
143. Psalms 110:1...To ascend to the right-hand of the Father...Mark16:19
144. Psalms 110:1...David's son called Lord...Matthew 22:44,45
145. Psalms 110:4...A priest after Melchizedek's order...Hebrews 6:20
146. Psalms 112:4...His character-Compassionate, Gracious, et al... Matthew 9;36
147. Psalms 118:17,18...Messiah's Resurrection assured...Luke 24:5-7;1 Corinthians 15:20
148. Psalms 118:22,23...The rejected stone is Head of the corner...Matthew 21:42,43
149. Psalms 118:26a...The Blessed One presented to Israel...Matthew 21:9
150. Psalms 118:26b...To come while Temple standing...Matthew 21;12-15
151. Psalms 132:11...The Seed of David (the fruit of His Body)...Luke 1:32
152. Psalms 138:1-6...The supremacy of David's Seed amazes kings... Matthew 2:2-6
153. Psalms 147:3,6...The earthly ministry of Christ described...Luke 4:18
154. Psalms 1:23...He will send the Spirit of God... John 16;7
155. Proverbs 8:22-23…The Messiah would be from everlasting…John 17:5
156. Proverbs 30:4…Declared to be the Son of God…John 3:13, Romans 1:2-4, 10:6-9, 2 Peter 1:17
157. Song of Solomon 5:16...The altogether lovely One...John 1:17
And as many again.