Original: It was written by Knowles, Kasseem "Swizz Beatz" Dean, Sean Garrett, Angela Beyincé and Stayve Thomas, and produced by Knowles and Swizz Beatz for the 2006 film The Pink Panther, in which Knowles co-stars.
Simplified: It was produced by Knowles and Swizz Beatz.