After leaving the palace, Moses prayed,
Moses left the palace and prayed.
After Moses and Aaron left the palace, Moses begged the LORD to do something about the frogs he had sent as punishment for the king.
and the LORD answered his prayer. Not a fly was left to pester the king, his officials, or anyone else in Egypt.
After Moses left the royal palace and the city, he lifted his arms in prayer to the LORD, and the thunder, hail, and drenching rain stopped.
If you have sinned, you should tell each other what you have done. Then you can pray for one another and be healed. The prayer of an innocent person is powerful, and it can help a lot.