When he was a fugitive from King Saul, David was in a position to do something disrespectful toward God’s anointed king, and he did.
وَعَلَى غِرَارِ دَاوُدَ ،‏ لَا شَكَّ أَنَّنَا جَمِيعًا شَعَرْنَا بِوَخْزِ ٱلضَّمِيرِ .‏