A man said his friend's prostate cancer diagnosis saved his life - after he got checked out and discovered he had it too.