It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "If a person falls asleep while in the state of prostration, his ablution is not nullified until he lies down on his side, because when he lies down on his side, his joints will become relaxed."