Islamically, a man cannot be reduced to either his thoughts alone or his actions alone.
His intentions give moral significance to his deeds, while his deeds reveal something about his character.
He must therefore hold himself accountable for both what he deliberately harbours in his heart and what he chooses to do.
Not every passing thought defines him, nor does every isolated action fully represent him. What matters is the sincerity of his intentions, the righteousness of his actions, and the consistency between the two.
I'm asking philosophically, Is a man what he thinks, or what he does