The office of the keys in the OT

Abraham exercised the keys in the OT for Abimelech (Gen. 20:7,17). God says he could do this specifically because he was a prophet.