51- The ruling on buying and selling currency
There is no harm if a person buys dollars or any other currency and then keeps it with him, and afterwards, when its rate rises and he sells it, there is no prohibition in that. But he must buy it in cash, not on credit, that is: buying dollars in exchange for Saudi riyals, or Iraqi dinars in exchange for Saudi riyals, but hand to hand. It is necessary for currency that its exchange be cash for cash, just as the exchange of silver for gold is done cash for cash. And Allah knows best.
Reference: Ibn Baz: Majmu’ al-Fatawa wa al-Maqalat: 59/19