I want to know like some person give me water when I was thirsty , so I thanked Allah for water and thanked the person too , I realised I should not say thanks to a non muslim or muslim I have to say may Allah bless you , is that right (similar case for sorry ) or I am allowed to say thanks and sorry ?
There's a hadith which strongly encourages being grateful to people:
Whoever is not grateful to the people, he is not grateful to Allah.
Jami` at-Tirmidhi 1955 [grade: sahih]
He who does not thank the people is not thankful to Allah.
Sunan Abi Dawud 4811 [grade: sahih]
And a hadith which strongly encourages seeking forgiveness from people:
Whoever has wronged his brother, should ask for his pardon ...
Sahih al-Bukhari 6534
These ahadith are among many others which implore good manners in general:
The most beloved to me amongst you is the one who has the best character and manners.
Sahih al-Bukhari 3759, 3760