Jesus said Peter would deny him before the rooster crowed three times that morning. See Luke 22:34
This came to pass when Jesus was brought before Caiaphas, the High Priest, for His second predawn trial, and thus second illegal, trial.
Here in Caiaphas courtyard Peter denied Jesus three times before the rooster crowed.
After the rooster crowed Peter realized what he had just done and wept bitterly because he was remorseful.
Peter Disowns Jesus
54 Then seizing him, they led him away and took him into the house of the high priest. Peter followed at a distance. 55 But when they had kindled a fire in the middle of the courtyard and had sat down together, Peter sat down with them. 56 A servant girl saw him seated there in the firelight. She looked closely at him and said, "This man was with him."
57 But he denied it. "Woman, I don't know him," he said.
58 A little later someone else saw him and said, "You also are one of them."
"Man, I am not!" Peter replied.
59 About an hour later another asserted, "Certainly this fellow was with him, for he is a Galilean."
60 Peter replied, "Man, I don't know what
you're talking about!" Just as he was speaking, the rooster crowed. 61 The Lord turned and looked straight at Peter.
Then Peter remembered the word the Lord had spoken to him: "Before the rooster crows today, you will disown me three
times." 62 And he went outside and wept
Also read: Matthew 26:57-75, Mark 14:53-72, John 18:15-27
31 "Simon, Simon, Satan has asked to sift you as
wheat. 32 But I have prayed for you, Simon, that your faith may not
fail. And when you have turned back, strengthen your brothers." 33 But
he replied, "Lord, I am ready to go with you to prison and to death." 34
Jesus answered, "I tell you, Peter, before the rooster crows today, you
will deny three times that you know me."
Matthew 26:31-35, Mark 14:27-31, John 13:31-38