שויתי ה’ לנגדי תמיד הוא כלל גדול בתורה
‘רמ”א או”ח סי’ א’ א
The Rema is revealing to us how to be able to fulfill all the laws of the Shulchan Oruch. The more a person is attached to Hashem the more Hashem helps him keep every detail. A person’s main effort is to be always attached to Hashem.