at the end of two full years
Two years passed after Joseph correctly interpreted the dreams of Pharaoh's cupbearer and baker, who had been in prison with Joseph.
Behold, he stood
"He was surprised because he was standing"
he stood
"Pharaoh was standing"