Andrés Bonifacio did not write the musical setting of "Pag-ibig sa Tinubuang Lupa."
The song—often sung as a patriotic hymn in the Philippines—was composed by Julián Felipe in 1898. Felipe also composed the Philippine National Anthem ("Lupang Hinirang," originally "Marcha Nacional Filipina").
Bonifacio did write a poem titled "Pag-ibig sa Tinubuang Lupa," but the musical version is Felipe's.