Islamic Interpretation of Dreams (Ibn-i Sirin):

(Alms; Charity; Contribution; Donation; Fulfilling needs; Gift; Offering; Profits; Religious endowment) Making a religious endowment in a dream represents good deeds that are done for God’s pleasure, seeking to be in His nearness and asking for His blessings. Making a religious endowment in a dream also means rising in station, both in this world and in the hereafter.

If what one donates for this purpose is a house or a book or money in the dream, it means repentance from one’s sins and guidance on the straight path, or it could mean begetting a son. Offering a swine or wine as an endowment in a dream means rising in rank in the world, injustice, and causing harm to others.