Destiny and Fate (Hadith No. 1143)

Volume 2, Book 23, Number 444:
Narrated 'Ali:
"We were accompanying a funeral procession in Baqi-al-Gharqad. The Prophet came to us and sat and we sat around him. He had a small stick in his hand then he bent his head and started scraping the ground with it. He then said, "There is none among you, and not a created soul, but has place either in Paradise or in Hell assigned for him and it is also determined for him whether he will be among the blessed or wretched." A man said, "O Allah's Apostle! Should we not depend on what has been written for us and leave the deeds as whoever amongst us is blessed will do the deeds of a blessed person and whoever amongst us will be wretched, will do the deeds of a wretched person?" The Prophet said, "The good deeds are made easy for the blessed, and bad deeds are made easy for the wretched." Then he recited the Verses:- "As for him who gives (in charity) and is Allah-fearing And believes in the Best reward from Allah." (92.5-6)
There's evidence here regarding sitting down near graves and admonishing people. [#YouthClub]
Sheikh Muhammed Salih Al-Munajjid:
Belief in destiny and fate is one of the basic beliefs of Islam. It means that Allaah is the Knower of all things and the Creator of all things; nothing exists outside of His will and decree. He wrote down all things with Him in al-Lawh al-Mahfooz (the Preserved Tablet), and this was fifty thousand years before He created the universe. Everything in the universe, every creature and the things it does, is the creation of Allaah. Whatever He wills happens, and whatever He does not will does not happen. If something happens to a person, it could not have missed him, and if something does not happen to him, it could not have happened to him. A person is not forced to obey or disobey Allaah – he has free will as befits his state, but it is subject to the will of the Creator. And Allaah knows best.
More on this subject here.