Shubhat al-fiʿl concerns an uncertainty associated with the actor’s understanding of what was permitted. It does not mean that any later assertion—“I thought it was allowed”—automatically has legal force. The law asks whether that belief arose in a legally recognized setting.
Two outwardly similar acts may differ because one carries a recognized basis of uncertainty while the other does not. Their rulings are not deduced from outward conduct alone.
Crucial distinction: the existence of a subjective belief is a psychological fact; whether law recognizes it as a ground affecting liability is a different inquiry.