Find all files in the current directory (and its subdirectories) whose name matches the pattern "*.*" (any name with an extension), take the first 5 results, and copy each of them to the directory ~/dest_dir/.
find . -iname "*.*" | head -n 5 | xargs -n1 -I{} cp {} ~/dest_dir/