Sadaqa or loan

I am in the habit of giving 10% of my earnings as sadaqa(lillah). One day a friend needed some money and I gave him from my sadaqa money.
Later on, despite my refusal, he returned it. But when giving it, I made the niyyah of sadaqa. Will that money be regarded as sadaqa or a loan?