Moses said to the people, "Do not be afraid. God has come to test you, so that the fear of God will be with you to keep you from sinning." (NIV)
And Moses said to the people, Fear not; for God has come to prove you, so that the [reverential] fear of Him may be before you, that you may not sin. (AMP)
And Moses said unto the people, Fear not: for God is come to prove you, and that his fear may be before your faces, that ye sin not. (KJV)