What is the content of Psalm 23 and who is its author?

The author of Psalm 23 is David.

The Lord is my shepherd; I don't need it.

He makes me lie down in the green grass and leads me to the quiet waters.

He revived my soul and guided me on the path of justice for his name's sake.

Although I walk through the valley of the shadow of death, I am not afraid of harm, because you are with me; Your staff and your pole comfort me.

You prepared a banquet for me in front of my enemies; You anointed my head, and my cup overflowed.

Lovingkindness will follow me all my life, and I will live in the house of the Lord forever.