What is the meaning of [Honesty is the best policy]

Here ‘policy’ means ‘course of action’. If we have to decide on a course of
action, honesty is the best one to follow. It is not a question of morals
alone, but of wise choice. Although dishonesty may prove profitable for a
while, honesty pays in the long run.