Go to System → Settings → Checkout
Set to OFF to show prices only when a customer is logged in. If Guest customers go to the product page they get When this setting is enabled, prices will be visible to all visitors, including guests. If you disable this setting, prices will only be displayed to logged-in customers. Guests who visit the product page will see the message "Please login or register to see the price or to order."