Imam al-Shafi'i (may Allah have mercy on him) said: "Because intention is something said within the self, and people have been excused (from being taken to account) for what they say within themselves."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / Q14195