How can we achieve God’s favor? The best way is by being obedient to His commands, because if we are disobedient and do not do His will, then we will be far from being able to get His favor.
Do not think that this will be like an exchange, you give me your favor and I will do the same, no. God acts as He wants and when He wants, for God to do something or give you something, it does not have to be through an exchange.
Whoso loveth instruction loveth knowledge: but he that hateth reproof is brutish.