It takes a pure heart to chart a perfect way.
God will always lead the pure hearted man in a perfect way.
When your heart is pure your ways will be perfect.
Purity of heart is what gives us access into a close walk with God thereby committing Him to literally guiding us perfectly. II Chr.16:9; Ps.25:9