Tur, Orach Chayim
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.
ספק אם קרא שמע או לא חוזר וקורא ומברך לפניה ולאחריה אבל אם יודע שקראה אלא שמסופק אם בירך לפניה ולאחריה אינו חוזר ומברך: