SMS dit: Maṣlaḥa and the purpose of the law