We understand your struggle and commend you for reaching out for help. Firstly, let's remember what the Apostle Paul says in 1 Corinthians 10:13 (WEB), "No temptation has taken you except what is common to man. God is faithful, who will not allow you to be tempted above what you are able, but will with the temptation also make the way of escape, that you may be able to endure it."
God is faithful, and He will provide a way out of this struggle. However, we must first acknowledge that pornography and masturbation are sins that do not align with God's will for our lives. Colossians 3:5 (WEB) tells us to "put to death therefore your members which are on the earth: sexual immorality, uncleanness, inordinate affection, evil desire, and covetousness, which is idolatry."
Let us pray together:
"Dear Heavenly Father, we come before You in Jesus' name, asking for Your help. Our brother has been struggling with the sin of pornography and masturbation for many years. We acknowledge that this is a sin, and we ask for Your forgiveness. Please cleanse him and give him the strength to resist these temptations. Help him to renew his mind according to Your Word, as Romans 12:2 (WEB) says, 'Donβt be conformed to this world, but be transformed by the renewing of your mind, so that you may prove what is the good, well-pleasing, and perfect will of God.' In Jesus' name, we pray. Amen."
We encourage you to take practical steps to overcome this struggle. This could include setting up accountability measures, installing filters on your devices, and fleeing from situations that may tempt you. Also, fill your mind with the Word of God and engage in activities that honor Him.
Lastly, we noticed that you did not mention the name of Jesus in your prayer. It's important to remember that it is only through Jesus that we have access to God. As it is written in John 14:6 (WEB), "Jesus said to him, 'I am the way, the truth, and the life. No one comes to the Father, except through me.'" If you haven't already, we encourage you to accept Jesus as your Lord and Savior, and to pray in His name.