What scripture did David have at that time to read?
Thanks for asking a question on www.thisisyourbible.com
David would have had a book of the Law: Genesis through Deuteronomy and possibly some other writings such as Joshua, Judges, Ruth.
See Joshua 1:8 This book of the law shall not depart out of thy mouth; but thou shalt meditate therein day and night, that thou mayest observe to do according to all that is written therein: for then thou shalt make thy way prosperous, and then thou shalt have good success.
Joshua had access to the "book of the law", the Torah, which is the first five books of the Bible.
To see these passages in a larger format, please set your computer display to view much larger print. I have no control over the way your computer displays text but you do have that control.
If you want to come to grips with what the Bible really teaches, why not take the free Bible study course on www.thisisyourbible.com? You may take this course either online or by regular mail.
This course will give you a background in the major themes of the Bible from Genesis to Revelation. As with everything we offer, there is no cost to you other than your time and effort. You will also have a personal tutor to whom you may pose questions either from the course itself or those questions which come to you as you read the Bible.
To sign up for the course, go to www.thisisyourbible.com and click on the "Students" tab on the left of the screen. Then scroll down and click on the blue bar which says "Sign up as a student today!" Fill in the registration form and submit it. If you sign up for the free online Bible course, you will be able to start immediately.
I hope you have found this helpful.