It will not fit.
3DS cartridges have a small tab that physically blocks them from seating in a DS or DSi slot — a deliberate design choice to stop the mix-up from happening in the first place.