God does not look at the outward appearance of things. Rather, He sees the heart of every matter and the true motive behind what is being done and rewards, or judges, accordingly.
I traverse the way of righteousness,
In the midst of the paths of justice,
That I may cause those who love me to inherit wealth,
That I may fill their treasuries.
—Proverbs 8:20–21 NKJV