Matthew 12:40 isnt to do with the crucifixion though.
That happens later in 27/28
27.62 The next day, that is, after the day of Preparation, the chief priests and the Pharisees gathered before Pilate 63 and said, “Sir, we remember how that impostor said, while he was still alive, ‘After three days I will rise.’ 64 Therefore order the tomb to be made secure until the third day, lest his disciples go and steal him away and tell the people, ‘He has risen from the dead,’ and the last fraud will be worse than the first.” 65 Pilate said to them, “You have a guard of soldiers. Go, make it as secure as you can.” 66 So they went and made the tomb secure by sealing the stone and setting a guard.
-
Now after the Sabbath, toward the dawn of the first day of the week, Mary Magdalene and the other Mary went to see the tomb. 2 And behold, there was a great earthquake, for an angel of the Lord descended from heaven and came and rolled back the stone and sat on it. 3 His appearance was like lightning, and his clothing white as snow. 4 And for fear of him the guards trembled and became like dead men. 5 But the angel said to the women, “Do not be afraid, for I know that you seek Jesus who was crucified. 6 He is not here, for he has risen, as he said. Come, see the place where he[a] lay. 7 Then go quickly and tell his disciples that he has risen from the dead, and behold, he is going before you to Galilee; there you will see him. See, I have told you.” 8 So they departed quickly from the tomb with fear and great joy, and ran to tell his disciples. 9 And behold, Jesus met them and said, “Greetings!” And they came up and took hold of his feet and worshiped him. 10 Then Jesus said to them, “Do not be afraid; go and tell my brothers to go to Galilee, and there they will see me.”
Mark clearly states he died on the day before the sabbath (friday)
15:42 And when evening had come, since it was the day of Preparation, that is, the day before the Sabbath, 43 Joseph of Arimathea, a respected member of the council, who was also himself looking for the kingdom of God, took courage and went to Pilate and asked for the body of Jesus. 44 Pilate was surprised to hear that he should have already died.[j] And summoning the centurion, he asked him whether he was already dead. 45 And when he learned from the centurion that he was dead, he granted the corpse to Joseph. 46 And Joseph[k] bought a linen shroud, and taking him down, wrapped him in the linen shroud and laid him in a tomb that had been cut out of the rock. And he rolled a stone against the entrance of the tomb.
and that he rose on the day after the sabbath
16 When the Sabbath was past, Mary Magdalene, Mary the mother of James, and Salome bought spices, so that they might go and anoint him. 2 And very early on the first day of the week, when the sun had risen, they went to the tomb. 3 And they were saying to one another, “Who will roll away the stone for us from the entrance of the tomb?” 4 And looking up, they saw that the stone had been rolled back—it was very large. 5 And entering the tomb, they saw a young man sitting on the right side, dressed in a white robe, and they were alarmed. 6 And he said to them, “Do not be alarmed. You seek Jesus of Nazareth, who was crucified. He has risen; he is not here. See the place where they laid him. 7 But go, tell his disciples and Peter that he is going before you to Galilee. There you will see him, just as he told you.” 8 And they went out and fled from the tomb, for trembling and astonishment had seized them, and they said nothing to anyone, for they were afraid.
Luke says the same thing. 23:50 to 24:12
John is a bit more vague, but still mentions the day of preparation and the first day of the week. Chapters 19 and 20.
Sorry everyone else.. i might be pagan but i studied Christianity at College, both bible study and philosophy.