“visit.” When God “visited” someone, He intervened in their life, and He could intervene for their blessing or to bring deserved consequences or punishment. God is a righteous God, and He holds people accountable for their actions. Here in Psalm 89:32, He will “visit” them with a rod because of their sin.
[For more on God “visiting,” see commentary on Exodus 20:5.]