Okay, I'm going to try to give as much of a nuanced take on this as I possibly can, while recognising the fact that I have very little cultural knowledge about the Muslim faith or your own country's/family's interpretation of it. You say that because you're Muslim, it would have to go straight to marriage, and I imagine that would be a bit of a distraction from your life and goals, yes. However, I would say that the biggest issue is having to impose such a finalised step (marriage) onto new/uncertain feelings. Ordinarily, I would say "You have a crush on him, go on a few dates, see how it goes, you don't have to marry him!". But...yeah. So here's a (very Westernised, religiously uneducated) perspective on this:
1) If he feels the same about you, figure out what that is, what that translates to. Perhaps for cultural reasons you couldn't "date" openly in the traditional sense, but you could informally be dating while seemingly being platonic to outsiders. I'm sure it's far too early for either of you to be thinking about marriage, but it might mean you can at least find a middle-ground.
2) If you actually want to stop thinking about him, then the only advice I have is to stop seeing him. This will not stop you thinking about him, your crush brain will constantly be doing that, but it might stop you from becoming even more obsessed or making any other memories together that will keep you distracted all the time.
3) Alternatively, if you can't really stop seeing him, then maybe try interacting with him only with other people present, so that the vibe is different. It might also allow you to see him more objectively, as you learn more about him and his behaviour. It's very difficult to stop thinking about people you have a crush on. But time, and seeing them as real people, can sometimes help shatter the perfect, idealised image of them you have in your head.
I'm not sure if this helps, but I hope it might give you some reassurance. Also just to emphasise: your feelings are not wrong or bad, and shouldn't be shut down for that reason. I'm just trying to give you options to navigate the restrictions that your faith might put on the way you can act on those feelings. Also, you might need to think about how this will affect your life long-term while you're trying to attain your goals, because there will probably be other crushes/loves that distract you just as much, if not more. Anyway, hope this helps somehow.