It is probably in the notifications settings. There you can activate whether an app can use sounds for a notification (as Whatsapp uses notifications for ringtones).
However, it might also be a setting in the Whatsapp.
So you would have to check both.