Rulers often act on their own agenda, but this passage reveals a higher power pulling the strings. God uses earthly leaders as instruments, even when they are unaware.
The psalmist isn't just recounting a historical event; he's pointing to God's active involvement. Even though Pharaoh is the one giving the command, the ultimate power and authority belong to God. Pharaoh, the 'king' and 'ruler of the peoples,' is merely an instrument in God's hands. This demonstrates that God’s plans are not dependent on human wisdom or willingness, but are unstoppable, executed through whomever He chooses, for His ultimate purposes.