Mat. 27 45 Now from the sixth hour there was darkness over all the land until the ninth hour.46 And about the ninth hour Jesus cried out with a loud voice, saying, “Eli, Eli, lema sabachthani?” that is, “My God, my God, why have you forsaken me?”
Luke: 23: 44) It was now about the sixth hour, and there was darkness over the whole land until the ninth hour, 45 while the sun's light failed. And the curtain of the temple was torn in two. 46 Then Jesus, calling out with a loud voice, said, “Father, into your hands I commit my spirit!” And having said this he breathed his last.

Jesus could have said both at different times at and around the 9th hour. It does say about the 9th hour.

Peace