Find all files containing specific text on Linux?

Use the following code to Find all files containing specific text on Linux?

grep -rnw ‘/path/to/somewhere/’ -e ‘pattern’