A trick that I just learnt when baking fish or meat in the oven. Heat the baking pan at the same time you are heating up the oven. Then put the meat or fish on it and you will find that it won't stick.
I line my baking tray with foil first, then heat up the pan. You have no need to spray or oil the pan. This works every time.