The Talmud
רֹאשׁ הַשָּׁנָה דף כ״חRosh Hashana 28b
Amud b of Rosh Hashana 28 — the second side of the page
English rendering prepared for The Gematria — not a historical translation.
Rosh Hashanah 28b · ראש השנה כ״ח ב
אבל הכא (ויקרא כג, כד) זכרון תרועה כתיב והאי מתעסק בעלמא הוא קמ"ל אלמא קסבר רבא מצות אין צריכות כוונה
— but here "a memorial of teruah" is written (Leviticus 23:24), and this man is merely one occupied with something else. So he teaches us otherwise. Evidently Rava holds that the commandments do not require intention.
איתיביה היה קורא בתורה והגיע זמן המקרא אם כוון לבו יצא ואם לאו לא יצא מאי לאו כוון לבו לצאת
He raised an objection against him: if a man was reading in the Torah and the time for the recitation of the Shema arrived — if he directed his heart he has fulfilled his obligation, and if not he has not fulfilled his obligation. Is it not that he directed his heart to fulfil the obligation?
לא לקרות לקרות הא קא קרי בקורא להגיה
No — to read. To read? But he is reading already! With one who is reading in order to correct the text.
ת"ש היה עובר אחורי בית הכנסת או שהיה ביתו סמוך לבית הכנסת ושמע קול שופר או קול מגילה אם כוון לבו יצא ואם לאו לא יצא מאי לאו אם כוון לבו לצאת
Come and hear: if he was passing behind a synagogue, or his house was near a synagogue, and he heard the sound of a shofar or the sound of the Megillah (the scroll of Esther, read on Purim) — if he directed his heart he has fulfilled his obligation, and if not he has not fulfilled his obligation. Is it not that he directed his heart to fulfil the obligation?
Talmud Bavli, Wikisource edition, via Sefaria — CC BY-SA 4.0. English rendering prepared for The Gematria — not a historical translation.