Ben Ish Hai, Halachot 1st Year, Eikev
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.
העשרה יושבין דכתיב ובמושב זקנים יהללוהו, והמברך עומד משום דברכה זו היא במקום קרבן תודה והמקריב עומד ומקריב, ולכן אין מברכים ברכת הגומל בלילה אלא ביום, ובדיעבד אם בירך בלילה יצא ידי חובתו ועיין חתם סופר אורח חיים סימן נ"א:
The ten sit, as it is written: and “in the assembly of the elders they will give thanks to God”, and the one who blesses stands because this blessing is instead of the thanksgiving sacrifice and the person who gives the sacrifice stands and sacrifices. And therefore we do not say Birkat HaGomel at night, but rather during the day. And retrospectively if someone blessed at night they fulfilled their duty – and see the Hatam Sofer Orakh Hayyim Siman 51.