To realize God’s presence is the one sovereign remedy against temptation.
“For you, my God, have revealed to your servant that you will build a house for him. Therefore your servant has found courage to pray before you. And now, O LORD, you are God, and you have promised this good thing to your servant. Now you have been pleased to bless the house of your servant, that it may continue forever before you, for it is you, O LORD, who have blessed, and it is blessed forever.”
1 Chronicles 17:25-27
The English Standard Version