Salam,
As mentioned by Nasir in the answer above, the phrase means: "If it weren't for God's mercy, he would have raped her."
You can clearly see that it is simply an expression that has a religious connotation rather than a "religious saying". The use of such expressions is not uncommon in Arabic.