"Whoever fails to appreciate the Creator's compassion for His creatures, His protection of them, His providence dominion, and control over them will not be confident in Him and will not rely on Him".
pg 465
Nefesh Hachaim
The Zohar teaches that GD's will is the same as GD and Halacha is His Will. This means if something turns from pure to unpure, kosher to unkosher, permitted or prohibited, it is GD's Will. When one learns Torah, Gemara, Halacha, Mishna.. he is connecting himself to GD.
Gate Four, Chapter 6 pg 143