John 11:51

51 He did not say this on his own; as high priest at that time he was led to prophesy that Jesus would die for the entire nation.