I found a link for people in United Arab Emirates where they can check if their car had been involved with any accident before. I'm not sure if it will cover history if the accident happen in any other emirates but it is good to check before you buy one.
What you need to do is to key in your chasis number which is your VIN number and click "Submit, then it will show you the result.
Here is the link: https://es.adpolice.gov.ae/trafficservices/PublicServices/AccidentsInquiry.aspx?Culture=en
I've only found this link after i've bought my M3, and when i check it, no history found.😀