What was Trump found guilty of?

I know it was like a hush money trial in New York. But what was the money related to? Was it from the prostitute case?