The Devotion to the Sacred Heart of Jesus was started and made popular by St. Margaret Mary Alacoque. She was inspired by visions of Jesus to spread this devotion. This was a favourite prayer of St. Padre Pio and he prayed it every day.
Here are the Novena prayers (by Fr. Donal Neary SJ) for the Novena to the Sacred Heart of Jesus from Messenger magazine.