I told him don't curse me
It is possible Ocean says this as he doesn’t understand that this is a prayer or because he has decided some religion is bad and non-productive.
Given the secret Frank is holding inside, it is most likely that this is not a diss to Islam (as further explained in The Unsung Words of “Bad Religion”), but instead a testament to the pain and agony he feels inside.
Frank is tormented by religion because of the secret he is holding within, which is conflicting with his religion out of vain.
In Islamic theology, demons consider prayers like Allahu Akhbar to be curses, it’s considered to be a method of exorcism. Maybe Ocean thinks of himself as demonic, hence why he would need prayer.
To help improve the meaning of these lyrics, visit "Bad Religion" by Frank Ocean Lyrics and leave a comment on the lyrics box