Wa `alaykum As-Salamu waRahmatullahi wa Barakatuh.
On the authority of `Ibn Abbas (may Allah be pleased with him), that the Messenger of Allah (peace and blessings of Allah be upon him) said: “Verily Allah has pardoned [or been lenient with] for me my ummah: their mistakes, their forgetfulness, and that which they have been forced to do under duress.” (Ibn Majah)
Furthermore, It was narrated from `A’ishah that the Prophet said: “The pen has been lifted from three: From the sleeper until he wakes up, from the minor until he grows up, and from the insane until he comes back to his senses or recovers.” (An-Nasa’i)
Based on those two reports, If a person commits something unlawful while he is sleeping, he is not liable to be sinful. Allah knows best.
Almighty Allah knows best.
Views expressed by hosts/guests on this program (live dialogue, Facebook sessions, etc.) are their own and their appearance on the program does not imply an endorsement of them or any entity they represent.