Original: It was written and produced by Beyoncé Knowles , Sam Barnes , Jean-Claude Olivier and Cory Rooney for the group 's third studio album , Survivor ( 2001 ) , although the song first appeared on the soundtrack to the 2000 film adaption of Charlie 's Angels .
Simplified: It was produced by Knowles , Rooney , and Poke & Tone and first appeared on the soundtrack to the film Charlie 's Angels .