EXCLUSIVERapper Lil Twist was driving Justin Bieber's Ferrari when it was pulled over Tuesday night ... moments before a paparazzo was hit by another car and killed -- TMZ has learned.
According to sources, 19-year-old Lil Twist was hanging with Bieber at the Four Seasons in Beverly Hills on Tuesday afternoon ... when, for some reason, he left in the white Ferrari without Justin.
Multiple sources tell us Twist -- who is a Lil Wayne protege -- and Biebs have been hanging out and partying together for several weeks now.
They even celebrated New Year's Eve together in Mexico ... where they're both of legal drinking age.
A rep for Lil Twist tells us the rapper did not see the accident happen ... and sends his thoughts and prayers to the family of the photographer.