Neither his great achievements in war nor his remarkable good fortune moved David from his pious ways, or in aught changed his mode of life. Even after he became king he sat at the feet of his teachers, Ira the Jairite and Mephibosheth. To the latter he always submitted his decisions on religious questions, to make sure that they were in accordance with law. Whatever leisure time his royal duties afforded him, he spent in study and prayer. He contented himself with "sixty breaths" of sleep. At midnight the strings of his harp, which were made of the gut of the ram sacrificed by Abraham on Mount Moriah, began to vibrate. The sound they emitted awakened David, and he would arise at once to devote himself to the study of the Torah.
Mephibosheth and the Patriarchs
Legends of the Jews 4:48