No he didn't. He said "Father forgive them for they know not what they do."
He did NOT say "I forgive them."
He was asking the Father to grant forgiveness, not giving it Himself.
L
“I and the Father are one” (John 10:30).