Now, in the same chapter and verses 28-29. This occurred after the ninth plague—the plague of darkness.
And he did not. That is what the scripture said.
Pharaoh's servants came and delivered the message from Pharaoh, "Get out!" Moses did not go to Pharaoh on that night. When the servants of Pharaoh came, we do not know exactly what time that was. We do know this: it was after midnight. But, it was still night when Pharaoh's servants arrived at Moses' house—and that is from the Bible's own record.
And Moses did not! The message came from Pharaoh to Moses in Goshen. That is where Moses was.