expectations

Having expectations in people

Q: I'm a student from Pakistan and alhamdolelah I am a Muslim. My question is that I have taken a loan from a friend for studies and it is a huge amount for me being student and now my friend is using me and treating me like his slave. In the beginning he promised me that he will help me with my studies, that's why I took the loan from him but now he wants his money back and threatens me that he will defame me and disrespect me. I don't have much money to pay him back. Can I call is a test from Allah for me?