Get one’s rocks off
This is male-orientated American slang for sexual intercourse and/or orgasm from stones or rocks meaning testicles. The expression dates from the 1940s.