question about shariah

i’ve read thats its not applicable on non-muslims. can i get a reference for this thing? what is the source for this statement?