Then David arose from the earth
From the floor on which he lay:
and washed, and anointed [himself], and changed his apparel;
neither of which he had done during his time of fasting:
and came into the house of the Lord, and worshipped;
went into the tabernacle he had built for the ark of God, and then in prayer submitted himself to the will of God, and acknowledged his justice in what he had done; gave thanks to God that he had brought him to a sense of his sin, and repentance for it, and had applied his pardoning grace to him, and given him satisfaction as to the eternal welfare and happiness of the child, as appears from ( 2 Samuel 12:23 ) ;
then he, came to his own house;
from the house of God, having finished his devotion there:
and when he required;
ordered food to be brought in:
they set bread before him, and he did eat:
whereas before, while the child was living, he refused to eat.