Shaykh Muhammad bin Salih al-‘Uthaymin (rahimahullah) mentions that an action must be in accordance with the Shari’ah with respect to six matters, as shown in the image below.

Link to Free eBook: http://www.salafiebooks.com/se/dld.cfm?a=hclexr
Taken from chapter 10 of the eBook. Refer to it for more examples and details.
Note: If download doesn’t happen straight away after clicking the link (which might be the case on a mobile phone or tablet), then refresh the page and it should, inshaa’Allaah.