Ben Ish Hai, Halachot 1st Year, Ha'Azinu
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
יקדש אחר שיהיה לילה ודאי, ובליל ראשון יברך "לישב בסוכה" ואחר כך "שהחיינו", כי ברכת "שהחיינו" קאי על הסוכה ועל קדוש יום טוב, אבל בליל שני יברך "שהחיינו" ואחר כך "לישב בסוכה":