There are numerous "miracle prayers" in the Catholic Church's treasury of devotions, and one of them is connected to the devotion to Jesus' Sacred Heart.
The prayer is frequently printed on backs of holy cards, and the author is unknown.
Yet, many claim many miraculous favors when it is prayed with faith and trust in God.
The instructions that accompany this prayer typically suggest reciting this prayer, with faith, for three consecutive days.
As with any prayer claiming to be miraculous, it is never the prayer itself that generates the miracle, but God responding to our incessant cries and seeing our genuine faith.