Giving something in sadaqah instead of throwing it away
Q: I was for Umrah in Madina and had around 15 atar bottles which I didn't like and thought of giving to someone instead of throwing them away. I found a street vendor and gave it to him. He also gave me one atar and miswak as part of gesture.
1. Is it ok to give from my side? Will I be rewarded?
2. Can I take it from him? I don't know his niyat of giving it to me, probably he mentioned this is from my side as you have given this to me.
3. Later, I gave both atar and miswak adding some money to a poor person. Is it correct?