"rushed"
Rushed is the correct verb form here, because in the sentence the other verb is "yelled". Because "yelled" is past tense, we can see that the other verb should be as well.
The full sentence should read: To my surprise, my friend Sam rushed in and yelled for me.