Open Safari
Click Preferences
Under the General tab, uncheck the option Open “safe” files after downloading