The ministry agreed to cancel his grant for university study but has not asked him to return the money he took
Question

                I am a student who had a grant for university study last year (research student contract). And there was agreement that I would not be given any other paid work. After that I got a work contract so I asked to cancel the research student contract. The ministry stopped paying the grant but up till now they have not asked me for the rest of the money that I had received. Have I discharged my duty before Allah and have I fulfilled my obligations towards the ministry? Should I give this money in zakaah or should I wait to make sure that the state is not going to ask for it? Can I use this money in a project with my friend, the capital of which is a riba-based loan?.
Praise be to Allah.
    Firstly: 

    If the ministry agreed to cancel the grant and did not ask 
    you for the money that you received, that is up to them. But you should make 
    sure that they will not ask for the money in the future before you decide to 
    spend it or use it for a project. 

    If one year has passed since you acquired this money and it 
    reaches the minimum threshold (nisaab) by itself or when added to other 
    wealth such as gold, silver or cash, then you have to pay zakaah on it, even 
    if you are required to return it or have decided to do so. So long as it is 
    in your possession when the year has passed, then it is obligatory to give 
    zakaah on it. 

    Secondly: 

    It is permissible to enter into a partnership with someone 
    who deals in riba or whose capital is a riba-based loan, because the correct 
    view is that his ownership of what he has borrowed is valid, although he is 
    committing sin by dealing with riba. 

    And it is better to enter into a partnership with a righteous 
    Muslim who keeps away from this major sin. 

    For more information please see the answer to question no.
    48005 

    And Allah knows best.