The Messenger of Allah (S.A.W.) passed away with his head on the lap of Imam Ali (A.S.). He departed to his Lord, the Most High, while still worried about the future of the Mission and nation. In the last hour of his life he asked for an inkpot and a sheet of paper to write on to the nation about that which would protect them from going astray after him. He continuously used to stress the necessity of adherence to his holy family.
source : abna