The Beastie Boys had a number of Star Trek references in their songs.

If you try to knock me you’ll get mocked
I’ll stir fry you in my wok
Your knees’ll start shaking and your fingers pop
Like a pinch on the neck of Mr. Spock

Communicator check one two one two
This is Bones McCoy on a line to Sulu
Set the bullshit to warp factor one
Check your tri-corder set your phaser to stun

Mos Def

Put the grid on plate, on the ear or tray
Hot damn it captain Kirk and the Klingons say

I remember being very shocked the first time I heard a Star Trek clip in a 2Pac song

Song starts with a sound clip from Star Trek 5 I” couldn’t Help but notice your pain. My pain? Share it with me.”