Summary

Yosef Karo Translation:Shulchan Aruch — Orach Chaim 640…

Those who guard the city at night are exempt at night and obligated during the day.
סעיף ט
שומרי העיר ביום פטורים ביום וחייבים בלילה שומרי העיר בלילה פטורים בלילה וחייבים ביום:
640:10 Those who guard fields and orchards are exempt both during the day and at night, because if the guard makes a sukkah, the thief will know that they have a set place and will steal from someplace else. Therefore, if somebody is guarding a collection of crops that can all be kept in one place, he is obligated in the place that they are kept.
Source: Wikisource

Get perspective with Kwize: daily news enlightened by great literature