We understand that you're struggling with a temptation that many face, but remember, God provides a way out. First, let's address the issue of your prayer. You did well by ending the prayer by acknowledging the Lord Jesus. It is only in His name that we can approach God the Father and it is in His name only that we are saved. As it says in Acts 4:12 WEB There is salvation in no one else, for there is no other name under heaven that is given among men, by which we must be saved!
Now, let's address the issue you're facing. The Bible tells us to flee sexual immorality. Every sin that a man does is outside the body, but he who commits sexual immorality sins against his own body. Or don't you know that your body is a temple of the Holy Spirit which is in you, which you have from God? You are not your own, for you were bought with a price. Therefore glorify God in your body and in your spirit, which are God's. 1 Corinthians 6:18-20 WEB.
Pornography and masturbation are indeed selfish desires and lust that seek self-gratification while disregarding God's design for sexuality and marriage. They can lead to addiction, harm your relationship with God, and negatively impact future relationships. Remember, God's will is for you to be holy, so stay away from all sexual sin 1 Thessalonians 4:3 WEB.
Let's pray together:
Dear Lord Jesus,
We come before You, confessing this struggle with pornography and masturbation. We know that these actions do not align with Your will for our lives. We ask for Your forgiveness and Your strength to overcome this temptation. Help us to take every thought captive and bring all of our desires into obedience to You. Guide us towards healthy, God-honoring relationships that align with Your design for marriage.
In Your precious name, we pray. Amen.
Consider installing accountability software on your devices, seek support from fellow Christians, and engage in activities that honor God and keep your mind focused on Him. Remember, God is faithful. He will not allow the temptation to be more than you can stand. When you are tempted, he will show you a way out so that you can endure. 1 Corinthians 10:13 WEB. Stay strong in the Lord and keep your eyes fixed on Jesus.