´It was narrated from 'Ali bin Abu Talib that:` the Messenger of Allah (ﷺ) said: "The Pen is lifted from the minor, the insane person and the sleeper."
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
An elderly person who has lost his senses and is not in possession of his intellect and awareness, the same ruling applies to him as well.
And Allah knows best.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 4403