This depends on the situation.

If you are going to seek knowledge and find someone who is drowning. If you don’t stop to help him, you are sinful. You must help even if this leads to missing your class and so on.

What is more important? helping others/Nikah or seeking knowledge of deen?

Manners |