Original: It was written and composed by band member Beyoncé Knowles, Anthony Dent, and Mathew Knowles for the band's third studio album Survivor (/O2001/O).
Simplified: It was produced by Beyoncé and Dent, and was released as the albums first single in early 2001.