Find all files in the home directory (denoted by ~/) that are of type file (denoted by -type f) and have a name ending in .jpg (denoted by -name "*.jpg") and execute the command grep -l "Test" on each of them (denoted by -exec grep -l "Test" {} \;).
find ~/ -type f -name "*.jpg" -exec grep -l "Test" {} \;