What happens to earnest money if you back out on buying the house?

my husband and i were gonna buy a house we put u earnest monet then we changed our mind what happens to the money
8 answers 8